# C1.WPF.Ribbon.C1ToggleButtonTool

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_Ribbon_C1ToggleButtonTool" data-uid="C1.WPF.Ribbon.C1ToggleButtonTool" class="text-break">C1ToggleButtonTool Class
</h1>
  <div class="markdown level0 summary"><p>Control that represents a toggle button.</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.Ribbon.C1Tool.html">C1Tool</a></div>
    <div class="level2"><span class="xref">C1ToggleButtonTool</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <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.Ribbon.html">C1.WPF.Ribbon</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.Ribbon.dll</h6>
  <h5 id="C1_WPF_Ribbon_C1ToggleButtonTool_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[TemplatePart(Name = &quot;Button&quot;, Type = typeof(C1ToggleButton))]
public class C1ToggleButtonTool : C1Tool, ICommandSource</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;TemplatePart(Name:=&quot;Button&quot;, Type:=GetType(C1ToggleButton))&gt;
Public Class C1ToggleButtonTool
    Inherits C1Tool
    Implements 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_Ribbon_C1ToggleButtonTool__ctor" data-uid="C1.WPF.Ribbon.C1ToggleButtonTool.#ctor">
          <a class="xref" href="C1.WPF.Ribbon.C1ToggleButtonTool.-ctor.html#C1_WPF_Ribbon_C1ToggleButtonTool__ctor">C1ToggleButtonTool()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.WPF.Ribbon.C1ToggleButtonTool.html">C1ToggleButtonTool</a> class.</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_Ribbon_C1ToggleButtonTool_CommandParameterProperty" data-uid="C1.WPF.Ribbon.C1ToggleButtonTool.CommandParameterProperty">
          <a class="xref" href="C1.WPF.Ribbon.C1ToggleButtonTool.CommandParameterProperty.html">CommandParameterProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Ribbon.C1ToggleButtonTool.CommandParameter.html#C1_WPF_Ribbon_C1ToggleButtonTool_CommandParameter">CommandParameter</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Ribbon_C1ToggleButtonTool_CommandProperty" data-uid="C1.WPF.Ribbon.C1ToggleButtonTool.CommandProperty">
          <a class="xref" href="C1.WPF.Ribbon.C1ToggleButtonTool.CommandProperty.html">CommandProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Ribbon.C1ToggleButtonTool.Command.html#C1_WPF_Ribbon_C1ToggleButtonTool_Command">Command</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Ribbon_C1ToggleButtonTool_CommandTargetProperty" data-uid="C1.WPF.Ribbon.C1ToggleButtonTool.CommandTargetProperty">
          <a class="xref" href="C1.WPF.Ribbon.C1ToggleButtonTool.CommandTargetProperty.html">CommandTargetProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Ribbon.C1ToggleButtonTool.CommandTarget.html#C1_WPF_Ribbon_C1ToggleButtonTool_CommandTarget">CommandTarget</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Ribbon_C1ToggleButtonTool_IsCheckedProperty" data-uid="C1.WPF.Ribbon.C1ToggleButtonTool.IsCheckedProperty">
          <a class="xref" href="C1.WPF.Ribbon.C1ToggleButtonTool.IsCheckedProperty.html">IsCheckedProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Ribbon.C1ToggleButtonTool.IsChecked.html#C1_WPF_Ribbon_C1ToggleButtonTool_IsChecked">IsChecked</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_Ribbon_C1ToggleButtonTool_Command" data-uid="C1.WPF.Ribbon.C1ToggleButtonTool.Command">
          <a class="xref" href="C1.WPF.Ribbon.C1ToggleButtonTool.Command.html#C1_WPF_Ribbon_C1ToggleButtonTool_Command">Command</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the command that can be bound to the tool.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Ribbon_C1ToggleButtonTool_CommandParameter" data-uid="C1.WPF.Ribbon.C1ToggleButtonTool.CommandParameter">
          <a class="xref" href="C1.WPF.Ribbon.C1ToggleButtonTool.CommandParameter.html#C1_WPF_Ribbon_C1ToggleButtonTool_CommandParameter">CommandParameter</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets command parameter.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Ribbon_C1ToggleButtonTool_CommandTarget" data-uid="C1.WPF.Ribbon.C1ToggleButtonTool.CommandTarget">
          <a class="xref" href="C1.WPF.Ribbon.C1ToggleButtonTool.CommandTarget.html#C1_WPF_Ribbon_C1ToggleButtonTool_CommandTarget">CommandTarget</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets command target.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Ribbon_C1ToggleButtonTool_IsChecked" data-uid="C1.WPF.Ribbon.C1ToggleButtonTool.IsChecked">
          <a class="xref" href="C1.WPF.Ribbon.C1ToggleButtonTool.IsChecked.html#C1_WPF_Ribbon_C1ToggleButtonTool_IsChecked">IsChecked</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether the button is checked.</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_Ribbon_C1ToggleButtonTool_Dispose_System_Boolean_" data-uid="C1.WPF.Ribbon.C1ToggleButtonTool.Dispose(System.Boolean)">
          <a class="xref" href="C1.WPF.Ribbon.C1ToggleButtonTool.Dispose.html#C1_WPF_Ribbon_C1ToggleButtonTool_Dispose_System_Boolean_">Dispose(bool)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WPF_Ribbon_C1ToggleButtonTool_Execute_System_Object_" data-uid="C1.WPF.Ribbon.C1ToggleButtonTool.Execute(System.Object)">
          <a class="xref" href="C1.WPF.Ribbon.C1ToggleButtonTool.Execute.html#C1_WPF_Ribbon_C1ToggleButtonTool_Execute_System_Object_">Execute(object)</a>
        </td>
        <td class="markdown level1 summary"><p>Called when the tool is executed.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Ribbon_C1ToggleButtonTool_OnApplyTemplate" data-uid="C1.WPF.Ribbon.C1ToggleButtonTool.OnApplyTemplate">
          <a class="xref" href="C1.WPF.Ribbon.C1ToggleButtonTool.OnApplyTemplate.html#C1_WPF_Ribbon_C1ToggleButtonTool_OnApplyTemplate">OnApplyTemplate()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WPF_Ribbon_C1ToggleButtonTool_OnClick" data-uid="C1.WPF.Ribbon.C1ToggleButtonTool.OnClick">
          <a class="xref" href="C1.WPF.Ribbon.C1ToggleButtonTool.OnClick.html#C1_WPF_Ribbon_C1ToggleButtonTool_OnClick">OnClick()</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_Ribbon_C1ToggleButtonTool_Checked" data-uid="C1.WPF.Ribbon.C1ToggleButtonTool.Checked">
          <a class="xref" href="C1.WPF.Ribbon.C1ToggleButtonTool.Checked.html">Checked</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when a System.Windows.Controls.Primitives.ToggleButton is checked.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Ribbon_C1ToggleButtonTool_Click" data-uid="C1.WPF.Ribbon.C1ToggleButtonTool.Click">
          <a class="xref" href="C1.WPF.Ribbon.C1ToggleButtonTool.Click.html">Click</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the tool is clicked, either through the menu or the control itself.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Ribbon_C1ToggleButtonTool_IsCheckedChanged" data-uid="C1.WPF.Ribbon.C1ToggleButtonTool.IsCheckedChanged">
          <a class="xref" href="C1.WPF.Ribbon.C1ToggleButtonTool.IsCheckedChanged.html">IsCheckedChanged</a>
        </td>
        <td class="markdown level1 summary"><p>Event raised when the <a class="xref" href="C1.WPF.Ribbon.C1ToggleButtonTool.IsChecked.html#C1_WPF_Ribbon_C1ToggleButtonTool_IsChecked">IsChecked</a> property has changed.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Ribbon_C1ToggleButtonTool_Unchecked" data-uid="C1.WPF.Ribbon.C1ToggleButtonTool.Unchecked">
          <a class="xref" href="C1.WPF.Ribbon.C1ToggleButtonTool.Unchecked.html">Unchecked</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when a System.Windows.Controls.Primitives.ToggleButton is unchecked.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
