Class SeparatorToolbarItem
Represents the SeparatorToolbarItem class.
Namespace: Syncfusion.Maui.Toolbar
Assembly: Syncfusion.Maui.Toolbar.dll
Syntax
public class SeparatorToolbarItem : BaseToolbarItem, IThemeElement
Constructors
SeparatorToolbarItem()
Initializes a new instance of the SeparatorToolbarItem class.
Declaration
public SeparatorToolbarItem()
Fields
SizeProperty
Identifies the Size bindable property.
Declaration
public static readonly BindableProperty SizeProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | Gets or sets the size of the separator item. |
StrokeProperty
Identifies the Stroke bindable property.
Declaration
public static readonly BindableProperty StrokeProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for the Stroke bindable property. |
StrokeThicknessProperty
Identifies the StrokeThickness bindable property.
Declaration
public static readonly BindableProperty StrokeThicknessProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for the StrokeThickness bindable property. |
Properties
Size
Gets or sets the separtor size.
Declaration
public double Size { get; set; }
Property Value
Type |
---|
System.Double |
Examples
The below example shows how to use the size property of the separatorToolbarItem.
<toolbar:SfToolbar x:Name="Toolbar"
HeightRequest="56"
Orientation="Horizontal">
<toolbar:SfToolbar.Items>
<toolbar:SeparatorToolbarItem Size="20"/>
</toolbar:SfToolbar.Items>
</toolbar:SfToolbar>
Stroke
Gets or sets the color for the separator border.
Declaration
public Color Stroke { get; set; }
Property Value
Type |
---|
Microsoft.Maui.Graphics.Color |
Examples
The below example shows how to use the stroke in separatorToolbarItem.
<toolbar:SfToolbar x:Name="Toolbar"
HeightRequest="56"
Orientation="Horizontal">
<toolbar:SfToolbar.Items>
<toolbar:SeparatorToolbarItem Stroke="Red"/>
</toolbar:SfToolbar.Items>
</toolbar:SfToolbar>
StrokeThickness
Gets or sets the thickness for the separator border.
Declaration
public double StrokeThickness { get; set; }
Property Value
Type |
---|
System.Double |
Examples
the below example shows how to set the stroke thickness property of the separatorToolbarItem.