Class GridImageColumn
Represents a column that displays the image in its cell content.
Inherited Members
Namespace: Syncfusion.UI.Xaml.Grid
Assembly: Syncfusion.SfGrid.WPF.dll
Syntax
public class GridImageColumn : GridColumn, IDisposable, INotifyDependencyPropertyChanged, IFilterDefinition
Constructors
GridImageColumn()
Initializes a new instance of the GridImageColumn class.
Declaration
public GridImageColumn()
Fields
ImageHeightProperty
Identifies the ImageHeight dependency property.
Declaration
public static readonly DependencyProperty ImageHeightProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
Remarks
The identifier for the ImageHeight dependency property.
ImageWidthProperty
Identifies the ImageWidth dependency property.
Declaration
public static readonly DependencyProperty ImageWidthProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
Remarks
The identifier for the ImageWidth dependency property.
StretchDirectionProperty
Identifies the StretchDirection dependency property.
Declaration
public static readonly DependencyProperty StretchDirectionProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
Remarks
The identifier for the StretchDirection dependency property.
StretchProperty
Identifies the Stretch dependency property.
Declaration
public static readonly DependencyProperty StretchProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
Remarks
The identifier for the Stretch dependency property.
Properties
ImageHeight
Gets or sets the height of the image.
Declaration
public double ImageHeight { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The height of the image. The default value is positive infinity. |
ImageWidth
Gets or sets the width of the image.
Declaration
public double ImageWidth { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The width of the image. The default value positive infinity. |
Stretch
Gets or sets a value that specifies how an System.Windows.Controls.Image can be stretched to fill the destination rectangle.
Declaration
public Stretch Stretch { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Media.Stretch | One of the System.Windows.Media.Stretch enumeration that specifies how the image is stretched. The default value is Stretch.Uniform. |
StretchDirection
Gets or sets a value that indicates how the image is scaled.
Declaration
public StretchDirection StretchDirection { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Controls.StretchDirection | One of the System.Windows.Controls.StretchDirection values. The default value is StretchDirection.Both. |
Methods
CanEditCell(Int32)
Determines whether the cells in GridImageColumn can be edited.
Declaration
protected override bool CanEditCell(int rowIndex = -1)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | rowIndex |
Returns
Type | Description |
---|---|
System.Boolean | Returns false for GridImageColumn. |
Overrides
OnCellTemplateChanged(DependencyPropertyChangedEventArgs)
Invoked when the
Declaration
protected override void OnCellTemplateChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | The System.Windows.DependencyPropertyChangedEventArgs that contains data for CellTemplate dependency property changes. |
Overrides
UpdateBindingBasedOnAllowEditing()
Updates the binding for the AllowEdit property changes in GridImageColumn.
Declaration
protected override void UpdateBindingBasedOnAllowEditing()