MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class DataFormDefaultLayoutSettings

    Show / Hide Table of Contents

    Class DataFormDefaultLayoutSettings

    Represents a class that holds the default layout settings of the DataFormItem.

    Inheritance
    System.Object
    DataFormDefaultLayoutSettings
    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 Description
    DataFormItemLength
    Examples

    The below examples shows, how to set the EditorWidth property of DataFormDefaultLayoutSettings in the SfDataForm.

    • XAML
    • C#
    <dataForm:SfDataForm x:Name="dataForm">
    </dataForm:SfDataForm>
    this.dataForm.DefaultLayoutSettings = new DataFormDefaultLayoutSettings()
    {
       EditorWidth = new DataFormItemLength(0.10, DataFormItemLengthUnitType.Star)
    };

    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 Description
    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.

    • XAML
    • C#
    <dataForm:SfDataForm x:Name="dataForm">
      <dataForm:SfDataForm.DefaultLayoutSettings>
        <dataForm:DataFormDefaultLayoutSettings
           LabelPosition = "Top"/>
      </dataForm:SfDataForm.DefaultLayoutSettings>
    </dataForm:SfDataForm>
    this.dataForm.DefaultLayoutSettings = new DataFormDefaultLayoutSettings()
    {
       LabelPosition = DataFormLabelPosition.Top
    };

    LabelWidth

    Gets or sets the width of the label.

    Declaration
    public DataFormItemLength LabelWidth { get; set; }
    Property Value
    Type Description
    DataFormItemLength
    Examples

    The below examples shows, how to set the LabelWidth property of DataFormDefaultLayoutSettings in the SfDataForm.

    • XAML
    • C#
    <dataForm:SfDataForm x:Name="dataForm">
    </dataForm:SfDataForm>
    this.dataForm.DefaultLayoutSettings = new DataFormDefaultLayoutSettings()
    {
       LabelWidth = new DataFormItemLength(0.3, DataFormItemLengthUnitType.Star),
    };
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved