Toolbar Elements > Toolbar Strip |
Represents a container for the toolbar controls and other C1 WPF controls. The C1ToolbarStrip is capable of hosting C1ToolbarButton, C1ToolbarToggleButton, C1ToolbarDropDown, C1ToolbarSplitButton, C1Separator, C1ComboBox, and C1TextBox controls.
The C1ToolbarStrip supports overflow depending on the available space in the Strip panel. The items will jump between the Strip panel and drop-down Overflow panel. This occurs automatically by default, but can be set to occur never, always, or as needed
The following image illustrates the overflow support the C1ToolbarStrip provides:
The C1ToolbarStrip can be added using XAML or programatically.
Ex: Toolbar strip with toggle buttons
XAML |
Copy Code
|
---|---|
<c1:C1ToolbarGroup Header="Font"> <c1:C1ToolbarStrip> <c1:C1ToolbarToggleButton LabelTitle="Bold" /> <c1:C1ToolbarToggleButton LabelTitle="Italic" /> <c1:C1ToolbarToggleButton LabelTitle="Underline" /> </c1:C1ToolbarStrip> </c1:C1ToolbarGroup> |
The C1ToolBarStrip includes the following unique properties:
Property |
Definition |
Gets or sets the Brush that will be assigned to the Background of the buttons inside the control. |
|
Gets or sets the Brush that will be assigned to the Foreground of the buttons inside the control. |
|
Gets or sets the Brush used to highlight the focused control. |
|
Gets or sets the Brush used to highlight the control when it has the mouse over. |
|
Gets or sets the orientation of the toolbar strip. |
|
Gets or set the value that indicates how to handle the items which do not fit to the available space. |
|
Gets the collection that contains elements of overflow menu. |
|
Gets or sets the template for overflow panel. |
|
Gets or sets the Brush used to paint a button when it is pressed. |