Componentone Toolbar for WPF and Silverlight
Toolbar Elements / Toolbar Strip
In This Topic
    Toolbar Strip
    In This Topic

    Represents a container for the toolbar controls and other C1 WPF controls. The C1ToolbarStrip is capable of hosting C1ToolbarButtonC1ToolbarToggleButtonC1ToolbarDropDownC1ToolbarSplitButton, 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

    ButtonBackground

    Gets or sets the Brush that will be assigned to the Background of the buttons inside the control.

    ButtonForeground

    Gets or sets the Brush that will be assigned to the Foreground of the buttons inside the control.

    FocusBrush

    Gets or sets the Brush used to highlight the focused control.

    MouseOverBrush

    Gets or sets the Brush used to highlight the control when it has the mouse over.

    Orientation

    Gets or sets the orientation of the toolbar strip.

    Overflow

    Gets or set the value that indicates how to handle the items which do not fit to the available space.

    OverflowMenuItems

    Gets the collection that contains elements of overflow menu.

    OverflowPanel

    Gets or sets the template for overflow panel.

    PressedBrush

    Gets or sets the Brush used to paint a button when it is pressed.