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.
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"/>
<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