Class DataFormSwitchEditor
Represents a class to handle the bool type property editor with Switch.
Implements
System.IDisposable
Inherited Members
Namespace: Syncfusion.XForms.DataForm.Editors
Assembly: Syncfusion.SfDataForm.XForms.dll
Syntax
public class DataFormSwitchEditor : DataFormEditor<Switch>, IThemeElement, IDisposable
Constructors
DataFormSwitchEditor(SfDataForm)
Initializes a new instance of the DataFormSwitchEditor class.
Declaration
public DataFormSwitchEditor(SfDataForm dataForm)
Parameters
Type | Name | Description |
---|---|---|
SfDataForm | dataForm | The DataForm. |
Methods
OnCreateEditorView(DataFormItem)
Create and return a new instance of the Xamarin.Forms.Switch.
Declaration
protected override Switch OnCreateEditorView(DataFormItem dataFormItem)
Parameters
Type | Name | Description |
---|---|---|
DataFormItem | dataFormItem | The corresponding DataFormItem. |
Returns
Type | Description |
---|---|
Xamarin.Forms.Switch | Returns the Xamarin.Forms.Switch editor. |
Overrides
Syncfusion.XForms.DataForm.Editors.DataFormEditor<Xamarin.Forms.Switch>.OnCreateEditorView(Syncfusion.XForms.DataForm.DataFormItem)
OnInitializeView(DataFormItem, Switch)
Initialize View with DataFormItem property info.
Declaration
protected override void OnInitializeView(DataFormItem dataFormItem, Switch view)
Parameters
Type | Name | Description |
---|---|---|
DataFormItem | dataFormItem | The dataFormItem is property info of Editor. |
Xamarin.Forms.Switch | view | The UIview. |
Overrides
Syncfusion.XForms.DataForm.Editors.DataFormEditor<Xamarin.Forms.Switch>.OnInitializeView(Syncfusion.XForms.DataForm.DataFormItem, Xamarin.Forms.Switch)
OnUpdateValue(DataFormItem, Switch)
Updates the value of the specific editor to corresponding property in the business object.
Declaration
protected override void OnUpdateValue(DataFormItem dataFormItem, Switch view)
Parameters
Type | Name | Description |
---|---|---|
DataFormItem | dataFormItem | the corresponding dataFormItem. |
Xamarin.Forms.Switch | view | the editor. |
Overrides
Syncfusion.XForms.DataForm.Editors.DataFormEditor<Xamarin.Forms.Switch>.OnUpdateValue(Syncfusion.XForms.DataForm.DataFormItem, Xamarin.Forms.Switch)
Implements
System.IDisposable