GridViewImageColumn
GridViewImageColumn provides an easy and fast way to display image. The column automatically creates Image based on DataMemberBinding property.
Definition
Namespace:Telerik.Windows.Controls
Assembly:Telerik.Windows.Controls.GridView.dll
Syntax:
public class GridViewImageColumn : GridViewBoundColumnBase, INotifyPropertyChanged, IDataFieldDescriptor, IFieldDescriptor, IExportableColumn
Inheritance: objectGridViewColumnGridViewBoundColumnBaseGridViewImageColumn
Implements:
Inherited Members
Constructors
Initializes a new instance of the GridViewImageColumn class.
public GridViewImageColumn()
Fields
ImageHeightProperty
DependencyProperty
Identify the ImageHeight dependency property.
public static readonly DependencyProperty ImageHeightProperty
ImageStretchProperty
DependencyProperty
Identify the ImageStretch dependency property.
public static readonly DependencyProperty ImageStretchProperty
ImageWidthProperty
DependencyProperty
Identify the ImageWidth dependency property.
public static readonly DependencyProperty ImageWidthProperty
Properties
Gets or sets the error image source.
public Uri ErrorImageSource { get; set; }
The error image source.
Gets or sets height for the image. This is a dependency property.
public double ImageHeight { get; set; }
The image height.
ImageStretch
Stretch
Gets or sets stretch for the image. This is a dependency property.
public Stretch ImageStretch { get; set; }
The image stretch.
Gets or sets width for the image. This is a dependency property.
public double ImageWidth { get; set; }
The image width.
Methods
Determines whether the data represented by the column can be sorted.
public override bool CanSort()
true if the data represented by the column can be sorted; otherwise, false.
Overrides:
Copy properties from source column.
public override void CopyPropertiesFrom(GridViewColumn source)
Overrides:
CreateCellElement(GridViewCell, object)
FrameworkElement
Creates the element for the cell in view mode.
public override FrameworkElement CreateCellElement(GridViewCell cell, object dataItem)
FrameworkElement
Overrides:
Called when DataMemberBinding was changed.
protected override void OnDataMemberBindingChanged()
Overrides: