# C1.Xamarin.Forms.Core.C1ToggleButton

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Xamarin_Forms_Core_C1ToggleButton" data-uid="C1.Xamarin.Forms.Core.C1ToggleButton" class="text-break">C1ToggleButton Class
</h1>
  <div class="markdown level0 summary"><p>Represents a button that a user can expand and collapse.</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">C1ToggleButton</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Xamarin.Forms.Core.html">C1.Xamarin.Forms.Core</a></h6>
  <h6><strong>Assembly</strong>: C1.Xamarin.Forms.Core.dll</h6>
  <h5 id="C1_Xamarin_Forms_Core_C1ToggleButton_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class C1ToggleButton : View</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_Xamarin_Forms_Core_C1ToggleButton__ctor" data-uid="C1.Xamarin.Forms.Core.C1ToggleButton.#ctor">
          <a class="xref" href="C1.Xamarin.Forms.Core.C1ToggleButton.-ctor.html#C1_Xamarin_Forms_Core_C1ToggleButton__ctor">C1ToggleButton()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Xamarin.Forms.Core.C1ToggleButton.html">C1ToggleButton</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_Xamarin_Forms_Core_C1ToggleButton_BorderWidthProperty" data-uid="C1.Xamarin.Forms.Core.C1ToggleButton.BorderWidthProperty">
          <a class="xref" href="C1.Xamarin.Forms.Core.C1ToggleButton.BorderWidthProperty.html">BorderWidthProperty</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Xamarin_Forms_Core_C1ToggleButton_CheckedContentProperty" data-uid="C1.Xamarin.Forms.Core.C1ToggleButton.CheckedContentProperty">
          <a class="xref" href="C1.Xamarin.Forms.Core.C1ToggleButton.CheckedContentProperty.html">CheckedContentProperty</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Xamarin_Forms_Core_C1ToggleButton_CheckedImageSourceProperty" data-uid="C1.Xamarin.Forms.Core.C1ToggleButton.CheckedImageSourceProperty">
          <a class="xref" href="C1.Xamarin.Forms.Core.C1ToggleButton.CheckedImageSourceProperty.html">CheckedImageSourceProperty</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Xamarin_Forms_Core_C1ToggleButton_CheckedTextProperty" data-uid="C1.Xamarin.Forms.Core.C1ToggleButton.CheckedTextProperty">
          <a class="xref" href="C1.Xamarin.Forms.Core.C1ToggleButton.CheckedTextProperty.html">CheckedTextProperty</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Xamarin_Forms_Core_C1ToggleButton_ColorProperty" data-uid="C1.Xamarin.Forms.Core.C1ToggleButton.ColorProperty">
          <a class="xref" href="C1.Xamarin.Forms.Core.C1ToggleButton.ColorProperty.html">ColorProperty</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Xamarin_Forms_Core_C1ToggleButton_IsCheckedProperty" data-uid="C1.Xamarin.Forms.Core.C1ToggleButton.IsCheckedProperty">
          <a class="xref" href="C1.Xamarin.Forms.Core.C1ToggleButton.IsCheckedProperty.html">IsCheckedProperty</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Xamarin_Forms_Core_C1ToggleButton_IsFocusableProperty" data-uid="C1.Xamarin.Forms.Core.C1ToggleButton.IsFocusableProperty">
          <a class="xref" href="C1.Xamarin.Forms.Core.C1ToggleButton.IsFocusableProperty.html">IsFocusableProperty</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Xamarin_Forms_Core_C1ToggleButton_PaddingProperty" data-uid="C1.Xamarin.Forms.Core.C1ToggleButton.PaddingProperty">
          <a class="xref" href="C1.Xamarin.Forms.Core.C1ToggleButton.PaddingProperty.html">PaddingProperty</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Xamarin_Forms_Core_C1ToggleButton_UncheckedContentProperty" data-uid="C1.Xamarin.Forms.Core.C1ToggleButton.UncheckedContentProperty">
          <a class="xref" href="C1.Xamarin.Forms.Core.C1ToggleButton.UncheckedContentProperty.html">UncheckedContentProperty</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Xamarin_Forms_Core_C1ToggleButton_UncheckedImageSourceProperty" data-uid="C1.Xamarin.Forms.Core.C1ToggleButton.UncheckedImageSourceProperty">
          <a class="xref" href="C1.Xamarin.Forms.Core.C1ToggleButton.UncheckedImageSourceProperty.html">UncheckedImageSourceProperty</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Xamarin_Forms_Core_C1ToggleButton_UncheckedTextProperty" data-uid="C1.Xamarin.Forms.Core.C1ToggleButton.UncheckedTextProperty">
          <a class="xref" href="C1.Xamarin.Forms.Core.C1ToggleButton.UncheckedTextProperty.html">UncheckedTextProperty</a>
        </td>
        <td class="markdown level1 summary"></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_Xamarin_Forms_Core_C1ToggleButton_BorderWidth" data-uid="C1.Xamarin.Forms.Core.C1ToggleButton.BorderWidth">
          <a class="xref" href="C1.Xamarin.Forms.Core.C1ToggleButton.BorderWidth.html#C1_Xamarin_Forms_Core_C1ToggleButton_BorderWidth">BorderWidth</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the width of the border.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Xamarin_Forms_Core_C1ToggleButton_CheckedContent" data-uid="C1.Xamarin.Forms.Core.C1ToggleButton.CheckedContent">
          <a class="xref" href="C1.Xamarin.Forms.Core.C1ToggleButton.CheckedContent.html#C1_Xamarin_Forms_Core_C1ToggleButton_CheckedContent">CheckedContent</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the content show when the button is checked.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Xamarin_Forms_Core_C1ToggleButton_CheckedImageSource" data-uid="C1.Xamarin.Forms.Core.C1ToggleButton.CheckedImageSource">
          <a class="xref" href="C1.Xamarin.Forms.Core.C1ToggleButton.CheckedImageSource.html#C1_Xamarin_Forms_Core_C1ToggleButton_CheckedImageSource">CheckedImageSource</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the image show when the button is checked.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Xamarin_Forms_Core_C1ToggleButton_CheckedText" data-uid="C1.Xamarin.Forms.Core.C1ToggleButton.CheckedText">
          <a class="xref" href="C1.Xamarin.Forms.Core.C1ToggleButton.CheckedText.html#C1_Xamarin_Forms_Core_C1ToggleButton_CheckedText">CheckedText</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the text show when the button is checked.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Xamarin_Forms_Core_C1ToggleButton_Color" data-uid="C1.Xamarin.Forms.Core.C1ToggleButton.Color">
          <a class="xref" href="C1.Xamarin.Forms.Core.C1ToggleButton.Color.html#C1_Xamarin_Forms_Core_C1ToggleButton_Color">Color</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the color used to paint the control.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Xamarin_Forms_Core_C1ToggleButton_IsChecked" data-uid="C1.Xamarin.Forms.Core.C1ToggleButton.IsChecked">
          <a class="xref" href="C1.Xamarin.Forms.Core.C1ToggleButton.IsChecked.html#C1_Xamarin_Forms_Core_C1ToggleButton_IsChecked">IsChecked</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether the <a class="xref" href="C1.Xamarin.Forms.Core.C1ToggleButton.html">C1ToggleButton</a> is checked.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Xamarin_Forms_Core_C1ToggleButton_IsFocusable" data-uid="C1.Xamarin.Forms.Core.C1ToggleButton.IsFocusable">
          <a class="xref" href="C1.Xamarin.Forms.Core.C1ToggleButton.IsFocusable.html#C1_Xamarin_Forms_Core_C1ToggleButton_IsFocusable">IsFocusable</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether the button can receive the focus.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Xamarin_Forms_Core_C1ToggleButton_Padding" data-uid="C1.Xamarin.Forms.Core.C1ToggleButton.Padding">
          <a class="xref" href="C1.Xamarin.Forms.Core.C1ToggleButton.Padding.html#C1_Xamarin_Forms_Core_C1ToggleButton_Padding">Padding</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the padding of the button.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Xamarin_Forms_Core_C1ToggleButton_UncheckedContent" data-uid="C1.Xamarin.Forms.Core.C1ToggleButton.UncheckedContent">
          <a class="xref" href="C1.Xamarin.Forms.Core.C1ToggleButton.UncheckedContent.html#C1_Xamarin_Forms_Core_C1ToggleButton_UncheckedContent">UncheckedContent</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the content shown when the button is unchecked.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Xamarin_Forms_Core_C1ToggleButton_UncheckedImageSource" data-uid="C1.Xamarin.Forms.Core.C1ToggleButton.UncheckedImageSource">
          <a class="xref" href="C1.Xamarin.Forms.Core.C1ToggleButton.UncheckedImageSource.html#C1_Xamarin_Forms_Core_C1ToggleButton_UncheckedImageSource">UncheckedImageSource</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the image shown when the button is unchecked.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Xamarin_Forms_Core_C1ToggleButton_UncheckedText" data-uid="C1.Xamarin.Forms.Core.C1ToggleButton.UncheckedText">
          <a class="xref" href="C1.Xamarin.Forms.Core.C1ToggleButton.UncheckedText.html#C1_Xamarin_Forms_Core_C1ToggleButton_UncheckedText">UncheckedText</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the text shown when the button is unchecked.</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_Xamarin_Forms_Core_C1ToggleButton_Dispose" data-uid="C1.Xamarin.Forms.Core.C1ToggleButton.Dispose">
          <a class="xref" href="C1.Xamarin.Forms.Core.C1ToggleButton.Dispose.html#C1_Xamarin_Forms_Core_C1ToggleButton_Dispose">Dispose()</a>
        </td>
        <td class="markdown level1 summary"><p>Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Xamarin_Forms_Core_C1ToggleButton_OnChecked_System_EventArgs_" data-uid="C1.Xamarin.Forms.Core.C1ToggleButton.OnChecked(System.EventArgs)">
          <a class="xref" href="C1.Xamarin.Forms.Core.C1ToggleButton.OnChecked.html#C1_Xamarin_Forms_Core_C1ToggleButton_OnChecked_System_EventArgs_">OnChecked(EventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Raises the <span class="xref">Checked</span> event.</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_Xamarin_Forms_Core_C1ToggleButton_Checked" data-uid="C1.Xamarin.Forms.Core.C1ToggleButton.Checked">
          <a class="xref" href="C1.Xamarin.Forms.Core.C1ToggleButton.Checked.html">Checked</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs after the value of checkBox changes</p>
</td>
      </tr>
      <tr>
        <td id="C1_Xamarin_Forms_Core_C1ToggleButton_Disposed" data-uid="C1.Xamarin.Forms.Core.C1ToggleButton.Disposed">
          <a class="xref" href="C1.Xamarin.Forms.Core.C1ToggleButton.Disposed.html">Disposed</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the object is disposed.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
