maui-devexpress-dot-maui-dot-controls-04ad5fab.md
A line that separates neighboring toolbar items within DXToolbar.
Namespace : DevExpress.Maui.Controls
Assembly : DevExpress.Maui.Controls.dll
NuGet Package : DevExpress.Maui.Controls
[DXLicenseMAUI]
public class ToolbarSeparator :
ToolbarItemBase
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>
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. |
You can use the Style inherited property to create a custom style applied to ToolbarSeparator.
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. |
Use the Color property to specify a separator color.
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. |
System.Object BindableObject Element DevExpress.Maui.Core.Internal.DXElementBaseCore DXElementBase ToolbarElementBase ToolbarItemBase ToolbarSeparator
YieldIfNotNull<ToolbarSeparator>()
See Also