# C1.WPF.Toolbar.C1ToolbarDropDown

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_Toolbar_C1ToolbarDropDown" data-uid="C1.WPF.Toolbar.C1ToolbarDropDown" class="text-break">C1ToolbarDropDown Class
</h1>
  <div class="markdown level0 summary"><p>C1ToolbarDropDown control represents a drop-down button on the C1ToobarStrip.
When clicking it displays popup panel with Content property or context menu set by Menu property.</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"><span class="xref">C1ToolbarDropDown</span></div>
      <div class="level2"><a class="xref" href="C1.WPF.Toolbar.C1ToolbarSplitButton.html">C1ToolbarSplitButton</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_C1ToolbarDropDown_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[TemplatePart(Name = &quot;VerticalTemplate&quot;, Type = typeof(Grid))]
[TemplatePart(Name = &quot;HorizontalTemplate&quot;, Type = typeof(Grid))]
public class C1ToolbarDropDown : C1DropDown</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;TemplatePart(Name:=&quot;VerticalTemplate&quot;, Type:=GetType(Grid))&gt;
&lt;TemplatePart(Name:=&quot;HorizontalTemplate&quot;, Type:=GetType(Grid))&gt;
Public Class C1ToolbarDropDown
    Inherits C1DropDown</code></pre>
  </div>
  <h5 id="C1_WPF_Toolbar_C1ToolbarDropDown_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><pre><code>&lt;example&gt;
</code></pre>
<p>Example 1.
Drop-down with popup stack panel with buttons.</p>
<pre><code class="lang-csharp">&gt;
            &lt;c1:C1ToolbarDropDown Padding="2" Header="Color"&gt;
              &lt;c1:C1ToolbarDropDown.Content&gt;
                &lt;StackPanel Margin="2" Orientation="Horizontal"&gt;
                  &lt;Button Margin="2" Content="Red" Foreground="Red" /&gt;
                  &lt;Button Margin="2" Content="Green" Foreground="Green" /&gt;
                  &lt;Button Margin="2" Content="Blue" Foreground="Blue" /&gt;
                &lt;/StackPanel&gt;
              &lt;/c1:C1ToolbarDropDown.Content&gt;
            &lt;/c1:C1ToolbarDropDown&gt;</code></pre>
<p>Example 2.
Dropdown with popup menu.</p>
<pre><code class="lang-csharp">&gt;
            &lt;c1:C1ToolbarDropDown Padding="2" Header="Color"&gt;
              &lt;c1:C1ToolbarDropDown.Menu&gt;
                &lt;c1:C1ContextMenu&gt;
                  &lt;c1:C1MenuItem IsCheckable="True" Header="Red" HeaderForeground="Red" /&gt;
                  &lt;c1:C1MenuItem IsCheckable="True" Header="Green" HeaderForeground="Green" /&gt;
                  &lt;c1:C1MenuItem IsCheckable="True" Header="Blue" HeaderForeground="Blue" /&gt;
                &lt;/c1:C1ContextMenu&gt;
              &lt;/c1:C1ToolbarDropDown.Menu&gt;
            &lt;/c1:C1ToolbarDropDown&gt;</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_C1ToolbarDropDown__ctor" data-uid="C1.WPF.Toolbar.C1ToolbarDropDown.#ctor">
          <a class="xref" href="C1.WPF.Toolbar.C1ToolbarDropDown.-ctor.html#C1_WPF_Toolbar_C1ToolbarDropDown__ctor">C1ToolbarDropDown()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of a <a class="xref" href="C1.WPF.Toolbar.C1ToolbarDropDown.html">C1ToolbarDropDown</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_C1ToolbarDropDown_ContentBackgroundProperty" data-uid="C1.WPF.Toolbar.C1ToolbarDropDown.ContentBackgroundProperty">
          <a class="xref" href="C1.WPF.Toolbar.C1ToolbarDropDown.ContentBackgroundProperty.html">ContentBackgroundProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Toolbar.C1ToolbarDropDown.ContentBackground.html#C1_WPF_Toolbar_C1ToolbarDropDown_ContentBackground">ContentBackground</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Toolbar_C1ToolbarDropDown_LabelTitleProperty" data-uid="C1.WPF.Toolbar.C1ToolbarDropDown.LabelTitleProperty">
          <a class="xref" href="C1.WPF.Toolbar.C1ToolbarDropDown.LabelTitleProperty.html">LabelTitleProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Using a DependencyProperty as the backing store for LabelTitle.<br>
This enables animation, styling, binding, etc...</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Toolbar_C1ToolbarDropDown_LargeImageSourceProperty" data-uid="C1.WPF.Toolbar.C1ToolbarDropDown.LargeImageSourceProperty">
          <a class="xref" href="C1.WPF.Toolbar.C1ToolbarDropDown.LargeImageSourceProperty.html">LargeImageSourceProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Using a DependencyProperty as the backing store for LargeImageSource.
This enables animation, styling, binding, etc...</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Toolbar_C1ToolbarDropDown_MenuProperty" data-uid="C1.WPF.Toolbar.C1ToolbarDropDown.MenuProperty">
          <a class="xref" href="C1.WPF.Toolbar.C1ToolbarDropDown.MenuProperty.html">MenuProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Toolbar.C1ToolbarDropDown.Menu.html#C1_WPF_Toolbar_C1ToolbarDropDown_Menu">Menu</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Toolbar_C1ToolbarDropDown_MouseOverBrushProperty" data-uid="C1.WPF.Toolbar.C1ToolbarDropDown.MouseOverBrushProperty">
          <a class="xref" href="C1.WPF.Toolbar.C1ToolbarDropDown.MouseOverBrushProperty.html">MouseOverBrushProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Toolbar.C1ToolbarDropDown.MouseOverBrush.html#C1_WPF_Toolbar_C1ToolbarDropDown_MouseOverBrush">MouseOverBrush</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Toolbar_C1ToolbarDropDown_PressedBrushProperty" data-uid="C1.WPF.Toolbar.C1ToolbarDropDown.PressedBrushProperty">
          <a class="xref" href="C1.WPF.Toolbar.C1ToolbarDropDown.PressedBrushProperty.html">PressedBrushProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Toolbar.C1ToolbarDropDown.PressedBrush.html#C1_WPF_Toolbar_C1ToolbarDropDown_PressedBrush">PressedBrush</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Toolbar_C1ToolbarDropDown_SmallImageSourceProperty" data-uid="C1.WPF.Toolbar.C1ToolbarDropDown.SmallImageSourceProperty">
          <a class="xref" href="C1.WPF.Toolbar.C1ToolbarDropDown.SmallImageSourceProperty.html">SmallImageSourceProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Using a DependencyProperty as the backing store for SmallImageSource.<br>
This enables animation, styling, binding, etc...</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_C1ToolbarDropDown_ContentBackground" data-uid="C1.WPF.Toolbar.C1ToolbarDropDown.ContentBackground">
          <a class="xref" href="C1.WPF.Toolbar.C1ToolbarDropDown.ContentBackground.html#C1_WPF_Toolbar_C1ToolbarDropDown_ContentBackground">ContentBackground</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the content background.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Toolbar_C1ToolbarDropDown_LabelTitle" data-uid="C1.WPF.Toolbar.C1ToolbarDropDown.LabelTitle">
          <a class="xref" href="C1.WPF.Toolbar.C1ToolbarDropDown.LabelTitle.html#C1_WPF_Toolbar_C1ToolbarDropDown_LabelTitle">LabelTitle</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the label title of control.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Toolbar_C1ToolbarDropDown_LargeImageSource" data-uid="C1.WPF.Toolbar.C1ToolbarDropDown.LargeImageSource">
          <a class="xref" href="C1.WPF.Toolbar.C1ToolbarDropDown.LargeImageSource.html#C1_WPF_Toolbar_C1ToolbarDropDown_LargeImageSource">LargeImageSource</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the large image source of the control.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Toolbar_C1ToolbarDropDown_Menu" data-uid="C1.WPF.Toolbar.C1ToolbarDropDown.Menu">
          <a class="xref" href="C1.WPF.Toolbar.C1ToolbarDropDown.Menu.html#C1_WPF_Toolbar_C1ToolbarDropDown_Menu">Menu</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the context menu which is displayed when the control is clicked.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Toolbar_C1ToolbarDropDown_MouseOverBrush" data-uid="C1.WPF.Toolbar.C1ToolbarDropDown.MouseOverBrush">
          <a class="xref" href="C1.WPF.Toolbar.C1ToolbarDropDown.MouseOverBrush.html#C1_WPF_Toolbar_C1ToolbarDropDown_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_C1ToolbarDropDown_PressedBrush" data-uid="C1.WPF.Toolbar.C1ToolbarDropDown.PressedBrush">
          <a class="xref" href="C1.WPF.Toolbar.C1ToolbarDropDown.PressedBrush.html#C1_WPF_Toolbar_C1ToolbarDropDown_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_C1ToolbarDropDown_SmallImageSource" data-uid="C1.WPF.Toolbar.C1ToolbarDropDown.SmallImageSource">
          <a class="xref" href="C1.WPF.Toolbar.C1ToolbarDropDown.SmallImageSource.html#C1_WPF_Toolbar_C1ToolbarDropDown_SmallImageSource">SmallImageSource</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the small image source of the control.</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_C1ToolbarDropDown_MeasureOverride_System_Windows_Size_" data-uid="C1.WPF.Toolbar.C1ToolbarDropDown.MeasureOverride(System.Windows.Size)">
          <a class="xref" href="C1.WPF.Toolbar.C1ToolbarDropDown.MeasureOverride.html#C1_WPF_Toolbar_C1ToolbarDropDown_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_C1ToolbarDropDown_OnApplyTemplate" data-uid="C1.WPF.Toolbar.C1ToolbarDropDown.OnApplyTemplate">
          <a class="xref" href="C1.WPF.Toolbar.C1ToolbarDropDown.OnApplyTemplate.html#C1_WPF_Toolbar_C1ToolbarDropDown_OnApplyTemplate">OnApplyTemplate()</a>
        </td>
        <td class="markdown level1 summary"><p>Builds the visual tree for the <a class="xref" href="C1.WPF.Toolbar.C1ToolbarDropDown.html">C1ToolbarDropDown</a> control when a new template is applied.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Toolbar_C1ToolbarDropDown_UpdateHeaderPresenter" data-uid="C1.WPF.Toolbar.C1ToolbarDropDown.UpdateHeaderPresenter">
          <a class="xref" href="C1.WPF.Toolbar.C1ToolbarDropDown.UpdateHeaderPresenter.html#C1_WPF_Toolbar_C1ToolbarDropDown_UpdateHeaderPresenter">UpdateHeaderPresenter()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
    </tbody>
  </table>

</div>
