Class DataFormListItem
Represents the class that encapsulates the common picker editor settings.
Inheritance
Inherited Members
Namespace: Syncfusion.Maui.DataForm
Assembly: Syncfusion.Maui.DataForm.dll
Syntax
public abstract class DataFormListItem : DataFormItem, IThemeElement
Constructors
DataFormListItem()
Declaration
protected DataFormListItem()
Fields
DisplayMemberPathProperty
Identifies the DisplayMemberPath dependency property.
Declaration
public static readonly BindableProperty DisplayMemberPathProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for DisplayMemberPath dependency property. |
ItemsSourceProperty
Identifies the ItemsSource dependency property.
Declaration
public static readonly BindableProperty ItemsSourceProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for ItemsSource dependency property. |
SelectedValuePathProperty
Identifies the SelectedValuePath dependency property.
Declaration
public static readonly BindableProperty SelectedValuePathProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for SelectedValuePath dependency property. |
Properties
DisplayMemberPath
Gets or sets a path to a value on the source object that will get displayed in picker.
Declaration
public string DisplayMemberPath { get; set; }
Property Value
Type |
---|
System.String |
See Also
ItemsSource
Gets or sets the collection which will get displayed in picker where the user can select from available items.
Declaration
public object ItemsSource { get; set; }
Property Value
Type |
---|
System.Object |
Examples
The below examples shows, how to use the ItemsSource property of DataFormListItem in the SfDataForm.
<dataForm:SfDataForm x:Name="dataForm"
AutoGenerateItems="True"
DataObject="{Binding SocialMedia}">
<dataForm:SfDataForm.BindingContext>
<local:SocialMediaViewModel/>
</dataForm:SfDataForm.BindingContext>
</dataForm:SfDataForm>
SelectedValuePath
Gets or sets a path to a value on the source object which will get saved to data field.
Declaration
public string SelectedValuePath { get; set; }
Property Value
Type |
---|
System.String |