Class DataFormDefaultLayoutSettings
Represents a class that holds the default layout settings of the DataFormItem.
Inheritance
Namespace: Syncfusion.Maui.DataForm
Assembly: Syncfusion.Maui.DataForm.dll
Syntax
public class DataFormDefaultLayoutSettings : BindableObject
Constructors
DataFormDefaultLayoutSettings()
Declaration
public DataFormDefaultLayoutSettings()
Fields
EditorWidthProperty
Identifies the EditorWidth dependency property.
Declaration
public static readonly BindableProperty EditorWidthProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for EditorWidth dependency property. |
LabelPositionProperty
Identifies the LabelPosition dependency property.
Declaration
public static readonly BindableProperty LabelPositionProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for LabelPosition dependency property. |
LabelWidthProperty
Identifies the LabelWidth dependency property.
Declaration
public static readonly BindableProperty LabelWidthProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for LabelWidth dependency property. |
Properties
EditorWidth
Gets or sets the width of the editor.
Declaration
public DataFormItemLength EditorWidth { get; set; }
Property Value
Type |
---|
DataFormItemLength |
Examples
The below examples shows, how to set the EditorWidth property of DataFormDefaultLayoutSettings in the SfDataForm.
LabelPosition
Gets or sets the label position for DataFormItem to define the position of the label which associated with the editor.
Declaration
public Nullable<DataFormLabelPosition> LabelPosition { get; set; }
Property Value
Type |
---|
System.Nullable<DataFormLabelPosition> |
Remarks
It is not applicable if LeadingView is provided, icon will be placed on left always.
Examples
The below examples shows, how to set the LabelPosition property of DataFormDefaultLayoutSettings in the SfDataForm.
<dataForm:SfDataForm x:Name="dataForm">
<dataForm:SfDataForm.DefaultLayoutSettings>
<dataForm:DataFormDefaultLayoutSettings
LabelPosition = "Top"/>
</dataForm:SfDataForm.DefaultLayoutSettings>
</dataForm:SfDataForm>
LabelWidth
Gets or sets the width of the label.
Declaration
public DataFormItemLength LabelWidth { get; set; }
Property Value
Type |
---|
DataFormItemLength |
Examples
The below examples shows, how to set the LabelWidth property of DataFormDefaultLayoutSettings in the SfDataForm.