# C1.WPF.Extended.C1Expander

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_Extended_C1Expander" data-uid="C1.WPF.Extended.C1Expander" class="text-break">C1Expander Class
</h1>
  <div class="markdown level0 summary"><p>C1Expander is a <span class="xref">C1.WPF.C1HeaderedContentControl</span> with a collapsible/expandable panel. The content is visible by clicking on the header.</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">C1Expander</span></div>
      <div class="level2"><a class="xref" href="C1.WPF.Extended.C1AccordionItem.html">C1AccordionItem</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_C1Expander_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[TemplatePart(Name = &quot;ExpandButton&quot;, Type = typeof(ToggleButton))]
[TemplateVisualState(Name = &quot;Expanded&quot;, GroupName = &quot;ExpansionStates&quot;)]
[TemplateVisualState(Name = &quot;Collapsed&quot;, GroupName = &quot;ExpansionStates&quot;)]
[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 C1Expander : C1HeaderedContentControl</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;TemplatePart(Name:=&quot;ExpandButton&quot;, Type:=GetType(ToggleButton))&gt;
&lt;TemplateVisualState(Name:=&quot;Expanded&quot;, GroupName:=&quot;ExpansionStates&quot;)&gt;
&lt;TemplateVisualState(Name:=&quot;Collapsed&quot;, GroupName:=&quot;ExpansionStates&quot;)&gt;
&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 C1Expander
    Inherits C1HeaderedContentControl</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_C1Expander__ctor" data-uid="C1.WPF.Extended.C1Expander.#ctor">
          <a class="xref" href="C1.WPF.Extended.C1Expander.-ctor.html#C1_WPF_Extended_C1Expander__ctor">C1Expander()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of a <a class="xref" href="C1.WPF.Extended.C1Expander.html">C1Expander</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_C1Expander_CornerRadiusProperty" data-uid="C1.WPF.Extended.C1Expander.CornerRadiusProperty">
          <a class="xref" href="C1.WPF.Extended.C1Expander.CornerRadiusProperty.html">CornerRadiusProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Extended.C1Expander.CornerRadius.html#C1_WPF_Extended_C1Expander_CornerRadius">CornerRadius</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Extended_C1Expander_DisabledBrushProperty" data-uid="C1.WPF.Extended.C1Expander.DisabledBrushProperty">
          <a class="xref" href="C1.WPF.Extended.C1Expander.DisabledBrushProperty.html">DisabledBrushProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Extended.C1Expander.DisabledBrush.html#C1_WPF_Extended_C1Expander_DisabledBrush">DisabledBrush</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Extended_C1Expander_ExpandDirectionProperty" data-uid="C1.WPF.Extended.C1Expander.ExpandDirectionProperty">
          <a class="xref" href="C1.WPF.Extended.C1Expander.ExpandDirectionProperty.html">ExpandDirectionProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Extended.C1Expander.ExpandDirection.html#C1_WPF_Extended_C1Expander_ExpandDirection">ExpandDirection</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Extended_C1Expander_ExpandedBackgroundProperty" data-uid="C1.WPF.Extended.C1Expander.ExpandedBackgroundProperty">
          <a class="xref" href="C1.WPF.Extended.C1Expander.ExpandedBackgroundProperty.html">ExpandedBackgroundProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Extended.C1Expander.ExpandedBackground.html#C1_WPF_Extended_C1Expander_ExpandedBackground">ExpandedBackground</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Extended_C1Expander_FocusBrushProperty" data-uid="C1.WPF.Extended.C1Expander.FocusBrushProperty">
          <a class="xref" href="C1.WPF.Extended.C1Expander.FocusBrushProperty.html">FocusBrushProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Extended.C1Expander.FocusBrush.html#C1_WPF_Extended_C1Expander_FocusBrush">FocusBrush</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Extended_C1Expander_IsExpandableProperty" data-uid="C1.WPF.Extended.C1Expander.IsExpandableProperty">
          <a class="xref" href="C1.WPF.Extended.C1Expander.IsExpandableProperty.html">IsExpandableProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Extended.C1Expander.IsExpandable.html#C1_WPF_Extended_C1Expander_IsExpandable">IsExpandable</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Extended_C1Expander_IsExpandedProperty" data-uid="C1.WPF.Extended.C1Expander.IsExpandedProperty">
          <a class="xref" href="C1.WPF.Extended.C1Expander.IsExpandedProperty.html">IsExpandedProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Extended.C1Expander.IsExpanded.html#C1_WPF_Extended_C1Expander_IsExpanded">IsExpanded</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Extended_C1Expander_MouseOverBrushProperty" data-uid="C1.WPF.Extended.C1Expander.MouseOverBrushProperty">
          <a class="xref" href="C1.WPF.Extended.C1Expander.MouseOverBrushProperty.html">MouseOverBrushProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Extended.C1Expander.MouseOverBrush.html#C1_WPF_Extended_C1Expander_MouseOverBrush">MouseOverBrush</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_C1Expander_CornerRadius" data-uid="C1.WPF.Extended.C1Expander.CornerRadius">
          <a class="xref" href="C1.WPF.Extended.C1Expander.CornerRadius.html#C1_WPF_Extended_C1Expander_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_C1Expander_DisabledBrush" data-uid="C1.WPF.Extended.C1Expander.DisabledBrush">
          <a class="xref" href="C1.WPF.Extended.C1Expander.DisabledBrush.html#C1_WPF_Extended_C1Expander_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_C1Expander_ExpandDirection" data-uid="C1.WPF.Extended.C1Expander.ExpandDirection">
          <a class="xref" href="C1.WPF.Extended.C1Expander.ExpandDirection.html#C1_WPF_Extended_C1Expander_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_C1Expander_ExpandedBackground" data-uid="C1.WPF.Extended.C1Expander.ExpandedBackground">
          <a class="xref" href="C1.WPF.Extended.C1Expander.ExpandedBackground.html#C1_WPF_Extended_C1Expander_ExpandedBackground">ExpandedBackground</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> that will be used when the control is expanded.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Extended_C1Expander_FocusBrush" data-uid="C1.WPF.Extended.C1Expander.FocusBrush">
          <a class="xref" href="C1.WPF.Extended.C1Expander.FocusBrush.html#C1_WPF_Extended_C1Expander_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_C1Expander_IsExpandable" data-uid="C1.WPF.Extended.C1Expander.IsExpandable">
          <a class="xref" href="C1.WPF.Extended.C1Expander.IsExpandable.html#C1_WPF_Extended_C1Expander_IsExpandable">IsExpandable</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether the expander can be expanded and collapsed.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Extended_C1Expander_IsExpanded" data-uid="C1.WPF.Extended.C1Expander.IsExpanded">
          <a class="xref" href="C1.WPF.Extended.C1Expander.IsExpanded.html#C1_WPF_Extended_C1Expander_IsExpanded">IsExpanded</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether the expander content is visible.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Extended_C1Expander_MouseOverBrush" data-uid="C1.WPF.Extended.C1Expander.MouseOverBrush">
          <a class="xref" href="C1.WPF.Extended.C1Expander.MouseOverBrush.html#C1_WPF_Extended_C1Expander_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>
    </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_C1Expander_ChangeVisualStateDirection_System_Boolean_" data-uid="C1.WPF.Extended.C1Expander.ChangeVisualStateDirection(System.Boolean)">
          <a class="xref" href="C1.WPF.Extended.C1Expander.ChangeVisualStateDirection.html#C1_WPF_Extended_C1Expander_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_C1Expander_ChangeVisualStateExpansion_System_Boolean_" data-uid="C1.WPF.Extended.C1Expander.ChangeVisualStateExpansion(System.Boolean)">
          <a class="xref" href="C1.WPF.Extended.C1Expander.ChangeVisualStateExpansion.html#C1_WPF_Extended_C1Expander_ChangeVisualStateExpansion_System_Boolean_">ChangeVisualStateExpansion(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Updates the current visual state of the Expansion visual state group to match the object's properties.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Extended_C1Expander_OnApplyTemplate" data-uid="C1.WPF.Extended.C1Expander.OnApplyTemplate">
          <a class="xref" href="C1.WPF.Extended.C1Expander.OnApplyTemplate.html#C1_WPF_Extended_C1Expander_OnApplyTemplate">OnApplyTemplate()</a>
        </td>
        <td class="markdown level1 summary"><p>Builds the visual tree for the <a class="xref" href="C1.WPF.Extended.C1Expander.html">C1Expander</a> control when a new template is applied.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Extended_C1Expander_OnCreateAutomationPeer" data-uid="C1.WPF.Extended.C1Expander.OnCreateAutomationPeer">
          <a class="xref" href="C1.WPF.Extended.C1Expander.OnCreateAutomationPeer.html#C1_WPF_Extended_C1Expander_OnCreateAutomationPeer">OnCreateAutomationPeer()</a>
        </td>
        <td class="markdown level1 summary"><p>Gets an AutomationPeer object used for testing the control.</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_Extended_C1Expander_IsExpandedChanged" data-uid="C1.WPF.Extended.C1Expander.IsExpandedChanged">
          <a class="xref" href="C1.WPF.Extended.C1Expander.IsExpandedChanged.html">IsExpandedChanged</a>
        </td>
        <td class="markdown level1 summary"><p>Event raised when the <span class="xref">IsExpanded</span> property has changed.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Extended_C1Expander_IsExpandedChanging" data-uid="C1.WPF.Extended.C1Expander.IsExpandedChanging">
          <a class="xref" href="C1.WPF.Extended.C1Expander.IsExpandedChanging.html">IsExpandedChanging</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs before the <a class="xref" href="C1.WPF.Extended.C1Expander.html">C1Expander</a> is expanded.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
