Class DataFormSegmentedEditor
Represents a class to handle enum types with Segment control.
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.XForms.DataForm.Editors
Assembly: Syncfusion.SfDataForm.XForms.dll
Syntax
public class DataFormSegmentedEditor : DataFormEditor<SfSegmentedControl>, IThemeElement, IDisposable
Constructors
DataFormSegmentedEditor(SfDataForm)
Initializes a new instance of the DataFormSegmentedEditor class.
Declaration
public DataFormSegmentedEditor(SfDataForm dataForm)
Parameters
Type | Name | Description |
---|---|---|
SfDataForm | dataForm | The DataForm. |
Methods
OnCommitValue(SfSegmentedControl)
Commits the value of DataFormSegmentedEditor to corresponding property in the business object.
Declaration
protected override void OnCommitValue(SfSegmentedControl view)
Parameters
Type | Name | Description |
---|---|---|
SfSegmentedControl | view | the editor. |
Overrides
OnCreateEditorView(DataFormItem)
Create and return a new instance of SfSegmentedControl.
Declaration
protected override SfSegmentedControl OnCreateEditorView(DataFormItem dataFormItem)
Parameters
Type | Name | Description |
---|---|---|
DataFormItem | dataFormItem | The corresponding DataFormItem. |
Returns
Type | Description |
---|---|
SfSegmentedControl | Returns a new instance of SfSegmentedControl. |
Overrides
OnInitializeView(DataFormItem, SfSegmentedControl)
Initialize View with DataFormItem property info.
Declaration
protected override void OnInitializeView(DataFormItem dataFormItem, SfSegmentedControl view)
Parameters
Type | Name | Description |
---|---|---|
DataFormItem | dataFormItem | The dataFormItem is property info of Editor. |
SfSegmentedControl | view | The UIview. |
Overrides
OnUnWireEvents(SfSegmentedControl)
UnWires events for DataFormItemView's editor view.
Declaration
protected override void OnUnWireEvents(SfSegmentedControl view)
Parameters
Type | Name | Description |
---|---|---|
SfSegmentedControl | view | The view to unwire the events. |
Overrides
OnUpdateValue(DataFormItem, SfSegmentedControl)
Updates the value of the specific editor to corresponding property in the business object.
Declaration
protected override void OnUpdateValue(DataFormItem dataFormItem, SfSegmentedControl view)
Parameters
Type | Name | Description |
---|---|---|
DataFormItem | dataFormItem | the corresponding dataFormItem. |
SfSegmentedControl | view | the editor. |
Overrides
OnValidateValue(SfSegmentedControl)
Validates the value of DataFormSegmentedEditor to corresponding property in the business object.
Declaration
protected override bool OnValidateValue(SfSegmentedControl view)
Parameters
Type | Name | Description |
---|---|---|
SfSegmentedControl | view | the editor. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Overrides
OnWireEvents(SfSegmentedControl)
Wires events for DataFormItemView's editor view.
Declaration
protected override void OnWireEvents(SfSegmentedControl view)
Parameters
Type | Name | Description |
---|---|---|
SfSegmentedControl | view | The view to unwire the events. |