alexa
Syncfusion
menu Syncfusion

MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Class DataFormDefaultLayoutSettings

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

    Inheritance
    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
    BindableProperty

    The identifier for EditorWidth dependency property.

    LabelPositionProperty

    Identifies the LabelPosition dependency property.

    Declaration
    [UnconditionalSuppressMessage("Trimming", "IL2062:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "<Pending>")]
    public static readonly BindableProperty LabelPositionProperty
    Field Value
    Type Description
    BindableProperty

    The identifier for LabelPosition dependency property.

    LabelWidthProperty

    Identifies the LabelWidth dependency property.

    Declaration
    public static readonly BindableProperty LabelWidthProperty
    Field Value
    Type Description
    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.

    • 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 DataFormLabelPosition? LabelPosition { get; set; }
    Property Value
    Type
    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
    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),
    };
    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved