ICellCustomizer.CreateUncheckedImageSource() Method

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

Namespace: DevExpress.Mobile.DataGrid.Theme

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


ImageSource CreateUncheckedImageSource()
Function CreateUncheckedImageSource As ImageSource


Type Description

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



This documentation topic describes legacy technology. We no longer develop new functionality for the GridControl and suggest that you use the new DataGridView control instead.

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 CreateUncheckedImageSource method allows you to set up the image that will be shown in columns of the SwitchColumn type once the switch is set to False (is not checked).

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

See Also