# C1.Blazor.Ribbon.C1ToggleButtonTool

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Blazor_Ribbon_C1ToggleButtonTool" data-uid="C1.Blazor.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="https://learn.microsoft.com/dotnet/api/microsoft.aspnetcore.components.componentbase">ComponentBase</a></div>
    <div class="level2"><a class="xref" href="../C1.Blazor.Core/C1.Blazor.Core.C1View.html">C1View</a></div>
    <div class="level3"><a class="xref" href="C1.Blazor.Ribbon.C1Tool.html">C1Tool</a></div>
    <div class="level4"><span class="xref">C1ToggleButtonTool</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/microsoft.aspnetcore.components.ihandleafterrender">IHandleAfterRender</a></div>
    <div><a class="xref" href="../C1.Blazor.Core/C1.Blazor.Core.IDependencyObject.html">IDependencyObject</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/microsoft.aspnetcore.components.ihandleevent">IHandleEvent</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/microsoft.aspnetcore.components.icomponent">IComponent</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Blazor.Ribbon.html">C1.Blazor.Ribbon</a></h6>
  <h6><strong>Assembly</strong>: C1.Blazor.Ribbon.dll</h6>
  <h5 id="C1_Blazor_Ribbon_C1ToggleButtonTool_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class C1ToggleButtonTool : C1Tool, IHandleAfterRender, IDependencyObject, IHandleEvent, IDisposable, IComponent</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class C1ToggleButtonTool
    Inherits C1Tool
    Implements IHandleAfterRender, IDependencyObject, IHandleEvent, IDisposable, IComponent</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_Blazor_Ribbon_C1ToggleButtonTool__ctor" data-uid="C1.Blazor.Ribbon.C1ToggleButtonTool.#ctor">
          <a class="xref" href="C1.Blazor.Ribbon.C1ToggleButtonTool.-ctor.html#C1_Blazor_Ribbon_C1ToggleButtonTool__ctor">C1ToggleButtonTool()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Blazor.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_Blazor_Ribbon_C1ToggleButtonTool_IsCheckedProperty" data-uid="C1.Blazor.Ribbon.C1ToggleButtonTool.IsCheckedProperty">
          <a class="xref" href="C1.Blazor.Ribbon.C1ToggleButtonTool.IsCheckedProperty.html">IsCheckedProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.Blazor.Ribbon.C1ToggleButtonTool.IsChecked.html#C1_Blazor_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_Blazor_Ribbon_C1ToggleButtonTool_IsChecked" data-uid="C1.Blazor.Ribbon.C1ToggleButtonTool.IsChecked">
          <a class="xref" href="C1.Blazor.Ribbon.C1ToggleButtonTool.IsChecked.html#C1_Blazor_Ribbon_C1ToggleButtonTool_IsChecked">IsChecked</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether the button is checked.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Blazor_Ribbon_C1ToggleButtonTool_IsCheckedChanged" data-uid="C1.Blazor.Ribbon.C1ToggleButtonTool.IsCheckedChanged">
          <a class="xref" href="C1.Blazor.Ribbon.C1ToggleButtonTool.IsCheckedChanged.html#C1_Blazor_Ribbon_C1ToggleButtonTool_IsCheckedChanged">IsCheckedChanged</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the callback called when the <a class="xref" href="C1.Blazor.Ribbon.C1ToggleButtonTool.IsChecked.html#C1_Blazor_Ribbon_C1ToggleButtonTool_IsChecked">IsChecked</a> property has changed.</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_Blazor_Ribbon_C1ToggleButtonTool_Dispose_System_Boolean_" data-uid="C1.Blazor.Ribbon.C1ToggleButtonTool.Dispose(System.Boolean)">
          <a class="xref" href="C1.Blazor.Ribbon.C1ToggleButtonTool.Dispose.html#C1_Blazor_Ribbon_C1ToggleButtonTool_Dispose_System_Boolean_">Dispose(bool)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Blazor_Ribbon_C1ToggleButtonTool_Execute_System_Object_" data-uid="C1.Blazor.Ribbon.C1ToggleButtonTool.Execute(System.Object)">
          <a class="xref" href="C1.Blazor.Ribbon.C1ToggleButtonTool.Execute.html#C1_Blazor_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_Blazor_Ribbon_C1ToggleButtonTool_GetContentRenderFragment_C1_Blazor_Core_C1Style_" data-uid="C1.Blazor.Ribbon.C1ToggleButtonTool.GetContentRenderFragment(C1.Blazor.Core.C1Style)">
          <a class="xref" href="C1.Blazor.Ribbon.C1ToggleButtonTool.GetContentRenderFragment.html#C1_Blazor_Ribbon_C1ToggleButtonTool_GetContentRenderFragment_C1_Blazor_Core_C1Style_">GetContentRenderFragment(C1Style)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a <a class="xref" href="https://learn.microsoft.com/dotnet/api/microsoft.aspnetcore.components.renderfragment">RenderFragment</a> that represents the tool's UI content.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Blazor_Ribbon_C1ToggleButtonTool_OnAfterRender_System_Boolean_" data-uid="C1.Blazor.Ribbon.C1ToggleButtonTool.OnAfterRender(System.Boolean)">
          <a class="xref" href="C1.Blazor.Ribbon.C1ToggleButtonTool.OnAfterRender.html#C1_Blazor_Ribbon_C1ToggleButtonTool_OnAfterRender_System_Boolean_">OnAfterRender(bool)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Blazor_Ribbon_C1ToggleButtonTool_OnClick" data-uid="C1.Blazor.Ribbon.C1ToggleButtonTool.OnClick">
          <a class="xref" href="C1.Blazor.Ribbon.C1ToggleButtonTool.OnClick.html#C1_Blazor_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_Blazor_Ribbon_C1ToggleButtonTool_Checked" data-uid="C1.Blazor.Ribbon.C1ToggleButtonTool.Checked">
          <a class="xref" href="C1.Blazor.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_Blazor_Ribbon_C1ToggleButtonTool_Click" data-uid="C1.Blazor.Ribbon.C1ToggleButtonTool.Click">
          <a class="xref" href="C1.Blazor.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_Blazor_Ribbon_C1ToggleButtonTool_Unchecked" data-uid="C1.Blazor.Ribbon.C1ToggleButtonTool.Unchecked">
          <a class="xref" href="C1.Blazor.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>
