Skip to main content

EditBase.BoxMargin Property

Gets the margin of the edit box inside the editor.

Namespace: DevExpress.XamarinForms.Editors

Assembly: DevExpress.XamarinForms.Editors.dll

NuGet Package: DevExpress.XamarinForms.Editors

Declaration

public Thickness BoxMargin { get; }

Property Value

Type Description
Thickness

Edit box margin.

Remarks

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

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

Margin Property

Appearance

Default

Bound to BoxMargin

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

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

See Also