# C1.WPF.Extended.C1ExpanderButton

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_Extended_C1ExpanderButton" data-uid="C1.WPF.Extended.C1ExpanderButton" class="text-break">C1ExpanderButton Class
</h1>
  <div class="markdown level0 summary"><p>Toggle Button whose ExpandDirection property and states are used to change
the appearance of the expand button of the <a class="xref" href="C1.WPF.Extended.C1Expander.html">C1Expander</a>.</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.contentcontrol">ContentControl</a></div>
    <div class="level8"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.primitives.buttonbase">ButtonBase</a></div>
    <div class="level9"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.primitives.togglebutton">ToggleButton</a></div>
    <div class="level10"><span class="xref">C1ExpanderButton</span></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.input.icommandsource">ICommandSource</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.WPF.Extended.html">C1.WPF.Extended</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.Extended.4.6.2.dll</h6>
  <h5 id="C1_WPF_Extended_C1ExpanderButton_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[TemplateVisualState(Name = &quot;Up&quot;, GroupName = &quot;DirectionStates&quot;)]
[TemplateVisualState(Name = &quot;Down&quot;, GroupName = &quot;DirectionStates&quot;)]
[TemplateVisualState(Name = &quot;Left&quot;, GroupName = &quot;DirectionStates&quot;)]
[TemplateVisualState(Name = &quot;Right&quot;, GroupName = &quot;DirectionStates&quot;)]
public class C1ExpanderButton : ToggleButton, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild, ICommandSource</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;TemplateVisualState(Name:=&quot;Up&quot;, GroupName:=&quot;DirectionStates&quot;)&gt;
&lt;TemplateVisualState(Name:=&quot;Down&quot;, GroupName:=&quot;DirectionStates&quot;)&gt;
&lt;TemplateVisualState(Name:=&quot;Left&quot;, GroupName:=&quot;DirectionStates&quot;)&gt;
&lt;TemplateVisualState(Name:=&quot;Right&quot;, GroupName:=&quot;DirectionStates&quot;)&gt;
Public Class C1ExpanderButton
    Inherits ToggleButton
    Implements IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild, ICommandSource</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_Extended_C1ExpanderButton__ctor" data-uid="C1.WPF.Extended.C1ExpanderButton.#ctor">
          <a class="xref" href="C1.WPF.Extended.C1ExpanderButton.-ctor.html#C1_WPF_Extended_C1ExpanderButton__ctor">C1ExpanderButton()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of a <a class="xref" href="C1.WPF.Extended.C1ExpanderButton.html">C1ExpanderButton</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_Extended_C1ExpanderButton_CornerRadiusProperty" data-uid="C1.WPF.Extended.C1ExpanderButton.CornerRadiusProperty">
          <a class="xref" href="C1.WPF.Extended.C1ExpanderButton.CornerRadiusProperty.html">CornerRadiusProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Extended.C1ExpanderButton.CornerRadius.html#C1_WPF_Extended_C1ExpanderButton_CornerRadius">CornerRadius</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Extended_C1ExpanderButton_DisabledBrushProperty" data-uid="C1.WPF.Extended.C1ExpanderButton.DisabledBrushProperty">
          <a class="xref" href="C1.WPF.Extended.C1ExpanderButton.DisabledBrushProperty.html">DisabledBrushProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Extended.C1ExpanderButton.DisabledBrush.html#C1_WPF_Extended_C1ExpanderButton_DisabledBrush">DisabledBrush</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Extended_C1ExpanderButton_ExpandDirectionProperty" data-uid="C1.WPF.Extended.C1ExpanderButton.ExpandDirectionProperty">
          <a class="xref" href="C1.WPF.Extended.C1ExpanderButton.ExpandDirectionProperty.html">ExpandDirectionProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Extended.C1ExpanderButton.ExpandDirection.html#C1_WPF_Extended_C1ExpanderButton_ExpandDirection">ExpandDirection</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Extended_C1ExpanderButton_FocusBrushProperty" data-uid="C1.WPF.Extended.C1ExpanderButton.FocusBrushProperty">
          <a class="xref" href="C1.WPF.Extended.C1ExpanderButton.FocusBrushProperty.html">FocusBrushProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Extended.C1ExpanderButton.FocusBrush.html#C1_WPF_Extended_C1ExpanderButton_FocusBrush">FocusBrush</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Extended_C1ExpanderButton_MouseOverBrushProperty" data-uid="C1.WPF.Extended.C1ExpanderButton.MouseOverBrushProperty">
          <a class="xref" href="C1.WPF.Extended.C1ExpanderButton.MouseOverBrushProperty.html">MouseOverBrushProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Extended.C1ExpanderButton.MouseOverBrush.html#C1_WPF_Extended_C1ExpanderButton_MouseOverBrush">MouseOverBrush</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Extended_C1ExpanderButton_PressedBrushProperty" data-uid="C1.WPF.Extended.C1ExpanderButton.PressedBrushProperty">
          <a class="xref" href="C1.WPF.Extended.C1ExpanderButton.PressedBrushProperty.html">PressedBrushProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Extended.C1ExpanderButton.PressedBrush.html#C1_WPF_Extended_C1ExpanderButton_PressedBrush">PressedBrush</a> 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_Extended_C1ExpanderButton_CornerRadius" data-uid="C1.WPF.Extended.C1ExpanderButton.CornerRadius">
          <a class="xref" href="C1.WPF.Extended.C1ExpanderButton.CornerRadius.html#C1_WPF_Extended_C1ExpanderButton_CornerRadius">CornerRadius</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value that represents the degree to which the corners of the element are rounded.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Extended_C1ExpanderButton_DisabledBrush" data-uid="C1.WPF.Extended.C1ExpanderButton.DisabledBrush">
          <a class="xref" href="C1.WPF.Extended.C1ExpanderButton.DisabledBrush.html#C1_WPF_Extended_C1ExpanderButton_DisabledBrush">DisabledBrush</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 is disabled.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Extended_C1ExpanderButton_ExpandDirection" data-uid="C1.WPF.Extended.C1ExpanderButton.ExpandDirection">
          <a class="xref" href="C1.WPF.Extended.C1ExpanderButton.ExpandDirection.html#C1_WPF_Extended_C1ExpanderButton_ExpandDirection">ExpandDirection</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the direction the expander expands.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Extended_C1ExpanderButton_FocusBrush" data-uid="C1.WPF.Extended.C1ExpanderButton.FocusBrush">
          <a class="xref" href="C1.WPF.Extended.C1ExpanderButton.FocusBrush.html#C1_WPF_Extended_C1ExpanderButton_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_Extended_C1ExpanderButton_MouseOverBrush" data-uid="C1.WPF.Extended.C1ExpanderButton.MouseOverBrush">
          <a class="xref" href="C1.WPF.Extended.C1ExpanderButton.MouseOverBrush.html#C1_WPF_Extended_C1ExpanderButton_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_Extended_C1ExpanderButton_PressedBrush" data-uid="C1.WPF.Extended.C1ExpanderButton.PressedBrush">
          <a class="xref" href="C1.WPF.Extended.C1ExpanderButton.PressedBrush.html#C1_WPF_Extended_C1ExpanderButton_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>
    </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_Extended_C1ExpanderButton_ChangeVisualStateDirection_System_Boolean_" data-uid="C1.WPF.Extended.C1ExpanderButton.ChangeVisualStateDirection(System.Boolean)">
          <a class="xref" href="C1.WPF.Extended.C1ExpanderButton.ChangeVisualStateDirection.html#C1_WPF_Extended_C1ExpanderButton_ChangeVisualStateDirection_System_Boolean_">ChangeVisualStateDirection(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Updates the current visual state of the Direction visual state group to match the object's properties.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Extended_C1ExpanderButton_OnApplyTemplate" data-uid="C1.WPF.Extended.C1ExpanderButton.OnApplyTemplate">
          <a class="xref" href="C1.WPF.Extended.C1ExpanderButton.OnApplyTemplate.html#C1_WPF_Extended_C1ExpanderButton_OnApplyTemplate">OnApplyTemplate()</a>
        </td>
        <td class="markdown level1 summary"><p>Builds the visual tree for the <a class="xref" href="C1.WPF.Extended.C1ExpanderButton.html">C1ExpanderButton</a> control when a new template is applied.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Extended_C1ExpanderButton_OnCreateAutomationPeer" data-uid="C1.WPF.Extended.C1ExpanderButton.OnCreateAutomationPeer">
          <a class="xref" href="C1.WPF.Extended.C1ExpanderButton.OnCreateAutomationPeer.html#C1_WPF_Extended_C1ExpanderButton_OnCreateAutomationPeer">OnCreateAutomationPeer()</a>
        </td>
        <td class="markdown level1 summary"><p>Gets an AutomationPeer object used for testing the control.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
