ICellCustomizer.CreateCheckedImageSource() Method

Sets up an image source for checked switches shown in switch columns.

Namespace: DevExpress.Mobile.DataGrid.Theme

Assembly: DevExpress.Mobile.Grid.v18.1.dll

Declaration

ImageSource CreateCheckedImageSource()
Function CreateCheckedImageSource As ImageSource

Returns

Type Description
Xamarin.Forms.ImageSource

The Xamarin.Forms.ImageSource object, that specifies the image source.

In the GridControl, data fields are represented as columns and records are displayed as rows. So, to display data, a grid should contain columns bound to fields of the underlying data source.

An individual column is specified by the SwitchColumn, NumberColumn, TextColumn or DateColumn object (a GridColumn descendant) depending on the type of data displayed in this column. Use columns of the SwitchColumn type that contain switches within cells to allow end-users to change Boolean values.

The CreateCheckedImageSource method allows you to set up the image that will be shown in columns of the SwitchColumn type once the switch is set to True (is checked).

The CreateCheckedImageSource method is abstract. So, to change the image source shown in your grid, override the method in the ICellCustomizer descendants.

See Also