Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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

C#
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