[]
        
(Showing Draft Content)

C1.WPF.Toolbar.C1ToolbarGroup

C1ToolbarGroup Class

C1ToolbarGroup control represents toolbar group that contains one or more toolbar strips.

Namespace: C1.WPF.Toolbar
Assembly: C1.WPF.Toolbar.4.6.2.dll
Syntax
[TemplatePart(Name = "Normal", Type = typeof(Grid))]
[TemplatePart(Name = "NormalGrid", Type = typeof(Grid))]
[TemplatePart(Name = "Collapsed", Type = typeof(Grid))]
[TemplatePart(Name = "CollapsedGrid", Type = typeof(Grid))]
[TemplatePart(Name = "Items", Type = typeof(ItemsPresenter))]
[TemplatePart(Name = "DropDown", Type = typeof(C1DropDownButton))]
[TemplatePart(Name = "DialogLauncher", Type = typeof(Button))]
[TemplatePart(Name = "DialogLauncherCollapsed", Type = typeof(Button))]
public class C1ToolbarGroup : ItemsControl, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild, IContainItemStorage

Constructors

Name Description
C1ToolbarGroup()

Initializes a new instance of a C1ToolbarGroup.

Fields

Name Description
FocusBrushProperty

Identifies the FocusBrush dependency property.

GroupSizeDefinitionsProperty

Identifies the GroupSizeDefinitions dependency property.

HeaderProperty

Identifies the Header dependency property.

MouseOverBrushProperty

Identifies the MouseOverBrush dependency property.

PressedBrushProperty

Identifies the PressedBrush dependency property.

ShowDialogLauncherProperty

Identifies the ShowDialogLauncher dependency property.

Properties

Name Description
FocusBrush

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

GroupSizeDefinitions

Gets or sets the collection of group size definitions for the toolbar group.

Header

Gets or sets the header of the toolbar group.

MouseOverBrush

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

PressedBrush

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

ShowDialogLauncher

Gets or sets the dialog launcher visibility.

Methods

Name Description
MeasureOverride(Size)

Called when measuring a control.

OnApplyTemplate()

Builds the visual tree for the C1ToolbarGroup control when a new template is applied.

OnItemsChanged(NotifyCollectionChangedEventArgs)

Invoked when Items property changed.

PrepareContainerForItemOverride(DependencyObject, object)

Prepares item container.

TryCloseDropDownButton()

Try to close the DropDownButton of this ToolbarGroup

Events

Name Description
DialogLauncherClick

Fires when dialog launcher is clicked.