# C1.WPF.Toolbar.C1ToolbarGroup

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_Toolbar_C1ToolbarGroup" data-uid="C1.WPF.Toolbar.C1ToolbarGroup" class="text-break">C1ToolbarGroup Class
</h1>
  <div class="markdown level0 summary"><p>C1ToolbarGroup control represents toolbar group that
contains one or more toolbar strips.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.threading.dispatcherobject">DispatcherObject</a></div>
    <div class="level2"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.dependencyobject">DependencyObject</a></div>
    <div class="level3"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.media.visual">Visual</a></div>
    <div class="level4"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.uielement">UIElement</a></div>
    <div class="level5"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.frameworkelement">FrameworkElement</a></div>
    <div class="level6"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.control">Control</a></div>
    <div class="level7"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.itemscontrol">ItemsControl</a></div>
    <div class="level8"><span class="xref">C1ToolbarGroup</span></div>
      <div class="level9"><a class="xref" href="C1.WPF.Toolbar.C1SimplifiedRibbonGroup.html">C1SimplifiedRibbonGroup</a></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.media.animation.ianimatable">IAnimatable</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.iframeworkinputelement">IFrameworkInputElement</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.iinputelement">IInputElement</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.isupportinitialize">ISupportInitialize</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.markup.iqueryambient">IQueryAmbient</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.markup.iaddchild">IAddChild</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.primitives.icontainitemstorage">IContainItemStorage</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.WPF.Toolbar.html">C1.WPF.Toolbar</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.Toolbar.4.6.2.dll</h6>
  <h5 id="C1_WPF_Toolbar_C1ToolbarGroup_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[TemplatePart(Name = &quot;Normal&quot;, Type = typeof(Grid))]
[TemplatePart(Name = &quot;NormalGrid&quot;, Type = typeof(Grid))]
[TemplatePart(Name = &quot;Collapsed&quot;, Type = typeof(Grid))]
[TemplatePart(Name = &quot;CollapsedGrid&quot;, Type = typeof(Grid))]
[TemplatePart(Name = &quot;Items&quot;, Type = typeof(ItemsPresenter))]
[TemplatePart(Name = &quot;DropDown&quot;, Type = typeof(C1DropDownButton))]
[TemplatePart(Name = &quot;DialogLauncher&quot;, Type = typeof(Button))]
[TemplatePart(Name = &quot;DialogLauncherCollapsed&quot;, Type = typeof(Button))]
public class C1ToolbarGroup : ItemsControl, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild, IContainItemStorage</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;TemplatePart(Name:=&quot;Normal&quot;, Type:=GetType(Grid))&gt;
&lt;TemplatePart(Name:=&quot;NormalGrid&quot;, Type:=GetType(Grid))&gt;
&lt;TemplatePart(Name:=&quot;Collapsed&quot;, Type:=GetType(Grid))&gt;
&lt;TemplatePart(Name:=&quot;CollapsedGrid&quot;, Type:=GetType(Grid))&gt;
&lt;TemplatePart(Name:=&quot;Items&quot;, Type:=GetType(ItemsPresenter))&gt;
&lt;TemplatePart(Name:=&quot;DropDown&quot;, Type:=GetType(C1DropDownButton))&gt;
&lt;TemplatePart(Name:=&quot;DialogLauncher&quot;, Type:=GetType(Button))&gt;
&lt;TemplatePart(Name:=&quot;DialogLauncherCollapsed&quot;, Type:=GetType(Button))&gt;
Public Class C1ToolbarGroup
    Inherits ItemsControl
    Implements IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild, IContainItemStorage</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_WPF_Toolbar_C1ToolbarGroup__ctor" data-uid="C1.WPF.Toolbar.C1ToolbarGroup.#ctor">
          <a class="xref" href="C1.WPF.Toolbar.C1ToolbarGroup.-ctor.html#C1_WPF_Toolbar_C1ToolbarGroup__ctor">C1ToolbarGroup()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of a <a class="xref" href="C1.WPF.Toolbar.C1ToolbarGroup.html">C1ToolbarGroup</a>.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="fields">Fields
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_WPF_Toolbar_C1ToolbarGroup_FocusBrushProperty" data-uid="C1.WPF.Toolbar.C1ToolbarGroup.FocusBrushProperty">
          <a class="xref" href="C1.WPF.Toolbar.C1ToolbarGroup.FocusBrushProperty.html">FocusBrushProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Toolbar.C1ToolbarGroup.FocusBrush.html#C1_WPF_Toolbar_C1ToolbarGroup_FocusBrush">FocusBrush</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Toolbar_C1ToolbarGroup_GroupSizeDefinitionsProperty" data-uid="C1.WPF.Toolbar.C1ToolbarGroup.GroupSizeDefinitionsProperty">
          <a class="xref" href="C1.WPF.Toolbar.C1ToolbarGroup.GroupSizeDefinitionsProperty.html">GroupSizeDefinitionsProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the GroupSizeDefinitions dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Toolbar_C1ToolbarGroup_HeaderProperty" data-uid="C1.WPF.Toolbar.C1ToolbarGroup.HeaderProperty">
          <a class="xref" href="C1.WPF.Toolbar.C1ToolbarGroup.HeaderProperty.html">HeaderProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the Header dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Toolbar_C1ToolbarGroup_MouseOverBrushProperty" data-uid="C1.WPF.Toolbar.C1ToolbarGroup.MouseOverBrushProperty">
          <a class="xref" href="C1.WPF.Toolbar.C1ToolbarGroup.MouseOverBrushProperty.html">MouseOverBrushProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Toolbar.C1ToolbarGroup.MouseOverBrush.html#C1_WPF_Toolbar_C1ToolbarGroup_MouseOverBrush">MouseOverBrush</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Toolbar_C1ToolbarGroup_PressedBrushProperty" data-uid="C1.WPF.Toolbar.C1ToolbarGroup.PressedBrushProperty">
          <a class="xref" href="C1.WPF.Toolbar.C1ToolbarGroup.PressedBrushProperty.html">PressedBrushProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Toolbar.C1ToolbarGroup.PressedBrush.html#C1_WPF_Toolbar_C1ToolbarGroup_PressedBrush">PressedBrush</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Toolbar_C1ToolbarGroup_ShowDialogLauncherProperty" data-uid="C1.WPF.Toolbar.C1ToolbarGroup.ShowDialogLauncherProperty">
          <a class="xref" href="C1.WPF.Toolbar.C1ToolbarGroup.ShowDialogLauncherProperty.html">ShowDialogLauncherProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the  ShowDialogLauncher dependency property.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_WPF_Toolbar_C1ToolbarGroup_FocusBrush" data-uid="C1.WPF.Toolbar.C1ToolbarGroup.FocusBrush">
          <a class="xref" href="C1.WPF.Toolbar.C1ToolbarGroup.FocusBrush.html#C1_WPF_Toolbar_C1ToolbarGroup_FocusBrush">FocusBrush</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.media.brush">Brush</a> used to highlight the focused control.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Toolbar_C1ToolbarGroup_GroupSizeDefinitions" data-uid="C1.WPF.Toolbar.C1ToolbarGroup.GroupSizeDefinitions">
          <a class="xref" href="C1.WPF.Toolbar.C1ToolbarGroup.GroupSizeDefinitions.html#C1_WPF_Toolbar_C1ToolbarGroup_GroupSizeDefinitions">GroupSizeDefinitions</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the collection of group size definitions for the toolbar group.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Toolbar_C1ToolbarGroup_Header" data-uid="C1.WPF.Toolbar.C1ToolbarGroup.Header">
          <a class="xref" href="C1.WPF.Toolbar.C1ToolbarGroup.Header.html#C1_WPF_Toolbar_C1ToolbarGroup_Header">Header</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the header of the toolbar group.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Toolbar_C1ToolbarGroup_MouseOverBrush" data-uid="C1.WPF.Toolbar.C1ToolbarGroup.MouseOverBrush">
          <a class="xref" href="C1.WPF.Toolbar.C1ToolbarGroup.MouseOverBrush.html#C1_WPF_Toolbar_C1ToolbarGroup_MouseOverBrush">MouseOverBrush</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.media.brush">Brush</a> used to highlight the control when it has the mouse over.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Toolbar_C1ToolbarGroup_PressedBrush" data-uid="C1.WPF.Toolbar.C1ToolbarGroup.PressedBrush">
          <a class="xref" href="C1.WPF.Toolbar.C1ToolbarGroup.PressedBrush.html#C1_WPF_Toolbar_C1ToolbarGroup_PressedBrush">PressedBrush</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.media.brush">Brush</a> used to paint a button when it is pressed.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Toolbar_C1ToolbarGroup_ShowDialogLauncher" data-uid="C1.WPF.Toolbar.C1ToolbarGroup.ShowDialogLauncher">
          <a class="xref" href="C1.WPF.Toolbar.C1ToolbarGroup.ShowDialogLauncher.html#C1_WPF_Toolbar_C1ToolbarGroup_ShowDialogLauncher">ShowDialogLauncher</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the dialog launcher visibility.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_WPF_Toolbar_C1ToolbarGroup_MeasureOverride_System_Windows_Size_" data-uid="C1.WPF.Toolbar.C1ToolbarGroup.MeasureOverride(System.Windows.Size)">
          <a class="xref" href="C1.WPF.Toolbar.C1ToolbarGroup.MeasureOverride.html#C1_WPF_Toolbar_C1ToolbarGroup_MeasureOverride_System_Windows_Size_">MeasureOverride(Size)</a>
        </td>
        <td class="markdown level1 summary"><p>Called when measuring a control.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Toolbar_C1ToolbarGroup_OnApplyTemplate" data-uid="C1.WPF.Toolbar.C1ToolbarGroup.OnApplyTemplate">
          <a class="xref" href="C1.WPF.Toolbar.C1ToolbarGroup.OnApplyTemplate.html#C1_WPF_Toolbar_C1ToolbarGroup_OnApplyTemplate">OnApplyTemplate()</a>
        </td>
        <td class="markdown level1 summary"><p>Builds the visual tree for the <a class="xref" href="C1.WPF.Toolbar.C1ToolbarGroup.html">C1ToolbarGroup</a> control when a new template is applied.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Toolbar_C1ToolbarGroup_OnItemsChanged_System_Collections_Specialized_NotifyCollectionChangedEventArgs_" data-uid="C1.WPF.Toolbar.C1ToolbarGroup.OnItemsChanged(System.Collections.Specialized.NotifyCollectionChangedEventArgs)">
          <a class="xref" href="C1.WPF.Toolbar.C1ToolbarGroup.OnItemsChanged.html#C1_WPF_Toolbar_C1ToolbarGroup_OnItemsChanged_System_Collections_Specialized_NotifyCollectionChangedEventArgs_">OnItemsChanged(NotifyCollectionChangedEventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Invoked when Items property changed.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Toolbar_C1ToolbarGroup_PrepareContainerForItemOverride_System_Windows_DependencyObject_System_Object_" data-uid="C1.WPF.Toolbar.C1ToolbarGroup.PrepareContainerForItemOverride(System.Windows.DependencyObject,System.Object)">
          <a class="xref" href="C1.WPF.Toolbar.C1ToolbarGroup.PrepareContainerForItemOverride.html#C1_WPF_Toolbar_C1ToolbarGroup_PrepareContainerForItemOverride_System_Windows_DependencyObject_System_Object_">PrepareContainerForItemOverride(DependencyObject, object)</a>
        </td>
        <td class="markdown level1 summary"><p>Prepares item container.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Toolbar_C1ToolbarGroup_TryCloseDropDownButton" data-uid="C1.WPF.Toolbar.C1ToolbarGroup.TryCloseDropDownButton">
          <a class="xref" href="C1.WPF.Toolbar.C1ToolbarGroup.TryCloseDropDownButton.html#C1_WPF_Toolbar_C1ToolbarGroup_TryCloseDropDownButton">TryCloseDropDownButton()</a>
        </td>
        <td class="markdown level1 summary"><p>Try to close the DropDownButton of this ToolbarGroup</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="events">Events
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_WPF_Toolbar_C1ToolbarGroup_DialogLauncherClick" data-uid="C1.WPF.Toolbar.C1ToolbarGroup.DialogLauncherClick">
          <a class="xref" href="C1.WPF.Toolbar.C1ToolbarGroup.DialogLauncherClick.html">DialogLauncherClick</a>
        </td>
        <td class="markdown level1 summary"><p>Fires when dialog launcher is clicked.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
