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
public class ToolbarSeparator :
ToolbarItemBase
Remarks
Add ToolbarSeparator to DXToolbar
The following code sample displays a ToolbarSeparator item within a DXToolbar control:
<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:
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 ToolbarSeparator.
Margins
You can use the following properties to customize ToolbarSeparator margins:
Property | Description |
---|---|
CapMargin | Gets or sets the margin near the short side of the ToolbarSeparator. This is a bindable property. |
SideMargin | Gets 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:
Property | Description |
---|---|
Length | Gets or sets the length of ToolbarSeparator. This is a bindable property. |
MaximumLength | Gets or sets the maximum length of ToolbarSeparator. This is a bindable property. |
MinimumLength | Gets or sets the minimum length of ToolbarSeparator. This is a bindable property. |
Thickness | Gets or sets the ToolbarSeparator thickness. This is a bindable property. |
Inheritance
Object
BindableObject
Element
DevExpress.Maui.Core.Internal.DXElementBaseCore
DXElementBase
ToolbarElementBase
ToolbarItemBase
ToolbarSeparator
See Also