Back to Devexpress

ToolbarSeparator Class

maui-devexpress-dot-maui-dot-controls-04ad5fab.md

latest4.6 KB
Original Source

ToolbarSeparator Class

A line that separates neighboring toolbar items within DXToolbar.

Namespace : DevExpress.Maui.Controls

Assembly : DevExpress.Maui.Controls.dll

NuGet Package : DevExpress.Maui.Controls

Declaration

csharp
[DXLicenseMAUI]
public class ToolbarSeparator :
    ToolbarItemBase

Remarks

Add ToolbarSeparator to DXToolbar

The following code sample displays a ToolbarSeparator item within a DXToolbar control:

xaml
<ContentPage ...
    xmlns:dxc="clr-namespace:DevExpress.Maui.Controls;assembly=DevExpress.Maui.Controls">
    <Grid>
        <dxc:DXToolbar>
            <!-- ... -->
            <dxc:ToolbarSeparator />
            <!-- ... -->
        </dxc:DXToolbar>
    </Grid>
</ContentPage>

Handle Loading

You can use the following inherited member to handle the ToolbarSeparator 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 ToolbarSeparator.

Margins

You can use the following properties to customize ToolbarSeparator margins:

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

Color

Use the Color property to specify a separator color.

Length and Thickness

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

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

Implements

INotifyPropertyChanged

IElementController

Inheritance

System.Object BindableObject Element DevExpress.Maui.Core.Internal.DXElementBaseCore DXElementBase ToolbarElementBase ToolbarItemBase ToolbarSeparator

Extension Methods

Yield<ToolbarSeparator>()

YieldIfNotNull<ToolbarSeparator>()

See Also

ToolbarSeparator Members

Items

DevExpress.Maui.Controls Namespace