Skip to main content

EditBase.BoxMargin Property

Gets the margin of the edit box inside the editor. This is a bindable property.

Namespace: DevExpress.Maui.Editors

Assembly: DevExpress.Maui.Editors.dll

NuGet Package: DevExpress.Maui.Editors

Declaration

public Thickness BoxMargin { get; }

Property Value

Type Description
Thickness

The edit box margin.

Remarks

Use this property to get the distance between the edit box and editor outer boundaries.

DevExpress MAUI TextEdit - Box Margin

You can bind an editor’s BoxMargin property to the Margin property of another control to align them.

Margin Property

Appearance

Default

DevExpress MAUI TextEdit - BoxMargin - Unaligned

Bound to BoxMargin

DevExpress MAUI TextEdit - BoxMargin - Aligned

<StackLayout Orientation="Horizontal">
  <dxe:TextEdit x:Name="textEditor" Text="Input text" LabelText="Label" HelpText="Help text"/>
  <dx:DXButton Margin="{Binding Source={x:Reference textEditor}, Path=BoxMargin}" Content="Press"/>
</StackLayout>

You can also set the minimum dimensions of an edit box with BoxMinWidth and BoxMinHeight properties.

See Also