Skip to main content
ON

DXSeparator Class

A line that separates neighboring items within your application’s UI.

Namespace: DevExpress.Maui.Core

Assembly: DevExpress.Maui.Core.dll

NuGet Package: DevExpress.Maui.Core

Declaration

public class DXSeparator :
    DXViewBaseCore,
    IView,
    IElement,
    ITransform

Remarks

Add DXSeparator to Page

The following code sample displays a DXSeparator item within your application’s UI:

<ContentPage ...
    xmlns:dx="clr-namespace:DevExpress.Maui.Core;assembly=DevExpress.Maui.Core">
    <Grid>
        <!-- ... -->
        <dx:DXSeparator />
        <!-- ... -->
    </Grid>
</ContentPage>

Handle Loading

You can use the following inherited member to handle the DXSeparator loading:

Property Description
IsLoaded Gets or sets whether a DXElementBase descendant is loaded.
Loaded Fires when the DXElementBase descendant is loaded.
Unloaded Fires when the DXElementBase descendant is unloaded.

Customize Appearance

You can use the Style inherited property to create a custom style applied to DXSeparator.

Margins

You can use the following properties to customize DXSeparator margins:

Property Description
CapMargin Gets or sets the margin near the short side of the DXSeparator. This is a bindable property.
SideMargin Gets or sets the margin that is displayed along the long side of DXSeparator. This is a bindable property.

MAUI Toolbar Separator - Side Margin

MAUI Toolbar Separator - Cap Margin

Color

Use the Color property to specify a separator color.

Orientation

Use the Orientation property to specify a separator orientation.

Length and Thickness

You can use the following properties to customize DXSeparator length and thickness:

Property Description
Length Gets or sets the length of DXSeparator. This is a bindable property.
MaximumLength Gets or sets the maximum length of DXSeparator. This is a bindable property.
MinimumLength Gets or sets the minimum length of DXSeparator. This is a bindable property.
Thickness Gets or sets the DXSeparator thickness. This is a bindable property.

Inheritance

Object
BindableObject
Element
NavigableElement
VisualElement
View
DevExpress.Maui.Core.Internal.DXViewBaseCore
DXSeparator
See Also