Back to Devexpress

DXSeparator Class

maui-devexpress-dot-maui-dot-core-e669f3d8.md

latest5.5 KB
Original Source

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

csharp
[DXLicenseMAUI]
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:

xaml
<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:

PropertyDescription
IsLoadedGets or sets whether a DXElementBase descendant is loaded.
LoadedFires when the DXElementBase descendant is loaded.
UnloadedFires 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:

PropertyDescription
CapMarginGets or sets the margin near the short side of the DXSeparator. This is a bindable property.
SideMarginGets or sets the margin that is displayed along the long side of DXSeparator. This is a bindable property.

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:

PropertyDescription
LengthGets or sets the length of DXSeparator. This is a bindable property.
MaximumLengthGets or sets the maximum length of DXSeparator. This is a bindable property.
MinimumLengthGets or sets the minimum length of DXSeparator. This is a bindable property.
ThicknessGets or sets the DXSeparator thickness. This is a bindable property.

Implements

Show 15 items

INotifyPropertyChanged

IAnimatable

Microsoft.Maui.Controls.ITabStopElement

IViewController

IVisualElementController

IElementController

IGestureController

IGestureRecognizers

IPropertyMapperView

IHotReloadableView

IReplaceableView

IView

Microsoft.Maui.IFrameworkElement

IElement

ITransform

Inheritance

System.Object BindableObject Element NavigableElement VisualElement View DevExpress.Maui.Core.Internal.DXViewElement DevExpress.Maui.Core.Internal.DXViewBaseCore DXSeparator

Extension Methods

Yield<DXSeparator>()

YieldIfNotNull<DXSeparator>()

See Also

DXSeparator Members

DevExpress.Maui.Core Namespace