# C1.WPF.Toolbar.C1ToolbarSplitButton

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_Toolbar_C1ToolbarSplitButton" data-uid="C1.WPF.Toolbar.C1ToolbarSplitButton" class="text-break">C1ToolbarSplitButton Class
</h1>
  <div class="markdown level0 summary"><p>C1ToolbarSplitButton control represents a drop-down split button on the C1ToobarStrip.</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="C1.WPF.Toolbar.C1ToolbarDropDown.html">C1ToolbarDropDown</a></div>
    <div class="level2"><span class="xref">C1ToolbarSplitButton</span></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_C1ToolbarSplitButton_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class C1ToolbarSplitButton : C1ToolbarDropDown</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class C1ToolbarSplitButton
    Inherits C1ToolbarDropDown</code></pre>
  </div>
  <h5 id="C1_WPF_Toolbar_C1ToolbarSplitButton_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p>It's similar to C1ToolbarDropDown but contains two clickable areas.
When clicking on rightmost part with downward-pointing rectangle it
displays popup panel with Content property or context menu set by Menu property.
Clicking on left part of button fires Click event as in the standard button.
Usually the Click event is used to perform default or last action while popup
allows to select alternative options.
<example>
Split button with popup menu.</example></p>
<pre><code class="lang-csharp">&lt;c1:C1ToolbarSplitButton Padding="2" Header="Defaut"
  Click="SetDefaultStyle"&gt;
  &lt;c1:C1ToolbarDropDown.Menu&gt;
    &lt;c1:C1ContextMenu&gt;
      &lt;c1:C1MenuItem Header="Heading 1" FontSize="14" /&gt;
      &lt;c1:C1MenuItem Header="Heading 2" FontSize="12" /&gt;
      &lt;c1:C1MenuItem Header="Title" FontWeight="Bold" /&gt;
      &lt;c1:C1MenuItem Header="Subtitle" FontWeight="SemiBold" FontStyle="Italic"  /&gt;
      &lt;c1:C1MenuItem Header="Quote" FontStyle="Italic" /&gt;
    &lt;/c1:C1ContextMenu&gt;
  &lt;/c1:C1ToolbarDropDown.Menu&gt;
&lt;/c1:C1ToolbarSplitButton&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_C1ToolbarSplitButton__ctor" data-uid="C1.WPF.Toolbar.C1ToolbarSplitButton.#ctor">
          <a class="xref" href="C1.WPF.Toolbar.C1ToolbarSplitButton.-ctor.html#C1_WPF_Toolbar_C1ToolbarSplitButton__ctor">C1ToolbarSplitButton()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates an instance of C1ToolbarSplitButton.</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_C1ToolbarSplitButton_OnApplyTemplate" data-uid="C1.WPF.Toolbar.C1ToolbarSplitButton.OnApplyTemplate">
          <a class="xref" href="C1.WPF.Toolbar.C1ToolbarSplitButton.OnApplyTemplate.html#C1_WPF_Toolbar_C1ToolbarSplitButton_OnApplyTemplate">OnApplyTemplate()</a>
        </td>
        <td class="markdown level1 summary"><p>Called when applying template.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Toolbar_C1ToolbarSplitButton_UpdateHeaderPresenter" data-uid="C1.WPF.Toolbar.C1ToolbarSplitButton.UpdateHeaderPresenter">
          <a class="xref" href="C1.WPF.Toolbar.C1ToolbarSplitButton.UpdateHeaderPresenter.html#C1_WPF_Toolbar_C1ToolbarSplitButton_UpdateHeaderPresenter">UpdateHeaderPresenter()</a>
        </td>
        <td class="markdown level1 summary"></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_C1ToolbarSplitButton_Click" data-uid="C1.WPF.Toolbar.C1ToolbarSplitButton.Click">
          <a class="xref" href="C1.WPF.Toolbar.C1ToolbarSplitButton.Click.html">Click</a>
        </td>
        <td class="markdown level1 summary"><p>Fires when the button is clicked.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
