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 |
---|---|
Is |
Gets or sets whether a DXElement |
Loaded | Fires when the DXElement |
Unloaded | Fires when the DXElement |
#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 |
---|---|
Cap |
Gets or sets the margin near the short side of the Toolbar |
Side |
Gets or sets the margin that is displayed along the long side of Toolbar |
#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 Toolbar |
Maximum |
Gets or sets the maximum length of Toolbar |
Minimum |
Gets or sets the minimum length of Toolbar |
Thickness | Gets or sets the Toolbar |