# C1.Win.Input.Styles.SwitchBaseStyle-1

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_Input_Styles_SwitchBaseStyle_1" data-uid="C1.Win.Input.Styles.SwitchBaseStyle`1" class="text-break">SwitchBaseStyle&lt;T&gt; Class
</h1>
  <div class="markdown level0 summary"><p>The base <a class="xref" href="C1.Win.Input.Styles.SwitchBaseStyle-1.html">SwitchBaseStyle&lt;T&gt;</a> class represents the style for elements of the <a class="xref" href="C1.Win.Input.C1ToggleSwitch.html">C1ToggleSwitch</a> control.</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.Win.10/C1.Win.Themes.StyledPropertyCollection.html">StyledPropertyCollection</a></div>
    <div class="level2"><a class="xref" href="../C1.Win.10/C1.Win.Themes.BaseStyle.html">BaseStyle</a></div>
    <div class="level3"><a class="xref" href="../C1.Win.10/C1.Win.Themes.BaseC1FrameworkStyle.html">BaseC1FrameworkStyle</a></div>
    <div class="level4"><span class="xref">SwitchBaseStyle&lt;T&gt;</span></div>
      <div class="level5"><a class="xref" href="C1.Win.Input.Styles.BarStyle.html">BarStyle</a></div>
      <div class="level5"><a class="xref" href="C1.Win.Input.Styles.ThumbStyle.html">ThumbStyle</a></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.inotifypropertychanged">INotifyPropertyChanged</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Win.Input.Styles.html">C1.Win.Input.Styles</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.Input.10.dll</h6>
  <h5 id="C1_Win_Input_Styles_SwitchBaseStyle_1_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class SwitchBaseStyle&lt;T&gt; : BaseC1FrameworkStyle, INotifyPropertyChanged, IDisposable where T : BaseC1FrameworkStyle, new()</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class SwitchBaseStyle(Of T As {BaseC1FrameworkStyle, New})
    Inherits BaseC1FrameworkStyle
    Implements INotifyPropertyChanged, IDisposable</code></pre>
  </div>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">T</span></td>
        <td></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_Win_Input_Styles_SwitchBaseStyle_1_Border" data-uid="C1.Win.Input.Styles.SwitchBaseStyle`1.Border">
          <a class="xref" href="C1.Win.Input.Styles.SwitchBaseStyle-1.Border.html#C1_Win_Input_Styles_SwitchBaseStyle_1_Border">Border</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the thickness of the border around the element.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Styles_SwitchBaseStyle_1_OffState" data-uid="C1.Win.Input.Styles.SwitchBaseStyle`1.OffState">
          <a class="xref" href="C1.Win.Input.Styles.SwitchBaseStyle-1.OffState.html#C1_Win_Input_Styles_SwitchBaseStyle_1_OffState">OffState</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the style containing display attributes that determine the general appearance of the element in the Off state.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Styles_SwitchBaseStyle_1_OnState" data-uid="C1.Win.Input.Styles.SwitchBaseStyle`1.OnState">
          <a class="xref" href="C1.Win.Input.Styles.SwitchBaseStyle-1.OnState.html#C1_Win_Input_Styles_SwitchBaseStyle_1_OnState">OnState</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the style containing display attributes that determine the general appearance of the element in the On state.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Styles_SwitchBaseStyle_1_Rounded" data-uid="C1.Win.Input.Styles.SwitchBaseStyle`1.Rounded">
          <a class="xref" href="C1.Win.Input.Styles.SwitchBaseStyle-1.Rounded.html#C1_Win_Input_Styles_SwitchBaseStyle_1_Rounded">Rounded</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether the element is rounded or not.</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_Win_Input_Styles_SwitchBaseStyle_1_ResetBorder" data-uid="C1.Win.Input.Styles.SwitchBaseStyle`1.ResetBorder">
          <a class="xref" href="C1.Win.Input.Styles.SwitchBaseStyle-1.ResetBorder.html#C1_Win_Input_Styles_SwitchBaseStyle_1_ResetBorder">ResetBorder()</a>
        </td>
        <td class="markdown level1 summary"><p>Restores the default value of the <a class="xref" href="C1.Win.Input.Styles.SwitchBaseStyle-1.Border.html#C1_Win_Input_Styles_SwitchBaseStyle_1_Border">Border</a> property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Styles_SwitchBaseStyle_1_ResetOffState" data-uid="C1.Win.Input.Styles.SwitchBaseStyle`1.ResetOffState">
          <a class="xref" href="C1.Win.Input.Styles.SwitchBaseStyle-1.ResetOffState.html#C1_Win_Input_Styles_SwitchBaseStyle_1_ResetOffState">ResetOffState()</a>
        </td>
        <td class="markdown level1 summary"><p>Restores the default value of the <a class="xref" href="C1.Win.Input.Styles.SwitchBaseStyle-1.OffState.html#C1_Win_Input_Styles_SwitchBaseStyle_1_OffState">OffState</a> property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Styles_SwitchBaseStyle_1_ResetOnState" data-uid="C1.Win.Input.Styles.SwitchBaseStyle`1.ResetOnState">
          <a class="xref" href="C1.Win.Input.Styles.SwitchBaseStyle-1.ResetOnState.html#C1_Win_Input_Styles_SwitchBaseStyle_1_ResetOnState">ResetOnState()</a>
        </td>
        <td class="markdown level1 summary"><p>Restores the default value of the <a class="xref" href="C1.Win.Input.Styles.SwitchBaseStyle-1.OnState.html#C1_Win_Input_Styles_SwitchBaseStyle_1_OnState">OnState</a> property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Styles_SwitchBaseStyle_1_ResetRounded" data-uid="C1.Win.Input.Styles.SwitchBaseStyle`1.ResetRounded">
          <a class="xref" href="C1.Win.Input.Styles.SwitchBaseStyle-1.ResetRounded.html#C1_Win_Input_Styles_SwitchBaseStyle_1_ResetRounded">ResetRounded()</a>
        </td>
        <td class="markdown level1 summary"><p>Restores the default value of the <a class="xref" href="C1.Win.Input.Styles.SwitchBaseStyle-1.Rounded.html#C1_Win_Input_Styles_SwitchBaseStyle_1_Rounded">Rounded</a> property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Styles_SwitchBaseStyle_1_ShouldSerializeBorder" data-uid="C1.Win.Input.Styles.SwitchBaseStyle`1.ShouldSerializeBorder">
          <a class="xref" href="C1.Win.Input.Styles.SwitchBaseStyle-1.ShouldSerializeBorder.html#C1_Win_Input_Styles_SwitchBaseStyle_1_ShouldSerializeBorder">ShouldSerializeBorder()</a>
        </td>
        <td class="markdown level1 summary"><p>Specifies whether to save the value of the <a class="xref" href="C1.Win.Input.Styles.SwitchBaseStyle-1.Border.html#C1_Win_Input_Styles_SwitchBaseStyle_1_Border">Border</a> property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Styles_SwitchBaseStyle_1_ShouldSerializeOffState" data-uid="C1.Win.Input.Styles.SwitchBaseStyle`1.ShouldSerializeOffState">
          <a class="xref" href="C1.Win.Input.Styles.SwitchBaseStyle-1.ShouldSerializeOffState.html#C1_Win_Input_Styles_SwitchBaseStyle_1_ShouldSerializeOffState">ShouldSerializeOffState()</a>
        </td>
        <td class="markdown level1 summary"><p>Specifies whether to save the value of the <a class="xref" href="C1.Win.Input.Styles.SwitchBaseStyle-1.OffState.html#C1_Win_Input_Styles_SwitchBaseStyle_1_OffState">OffState</a> property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Styles_SwitchBaseStyle_1_ShouldSerializeOnState" data-uid="C1.Win.Input.Styles.SwitchBaseStyle`1.ShouldSerializeOnState">
          <a class="xref" href="C1.Win.Input.Styles.SwitchBaseStyle-1.ShouldSerializeOnState.html#C1_Win_Input_Styles_SwitchBaseStyle_1_ShouldSerializeOnState">ShouldSerializeOnState()</a>
        </td>
        <td class="markdown level1 summary"><p>Specifies whether to save the value of the <a class="xref" href="C1.Win.Input.Styles.SwitchBaseStyle-1.OnState.html#C1_Win_Input_Styles_SwitchBaseStyle_1_OnState">OnState</a> property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Styles_SwitchBaseStyle_1_ShouldSerializeRounded" data-uid="C1.Win.Input.Styles.SwitchBaseStyle`1.ShouldSerializeRounded">
          <a class="xref" href="C1.Win.Input.Styles.SwitchBaseStyle-1.ShouldSerializeRounded.html#C1_Win_Input_Styles_SwitchBaseStyle_1_ShouldSerializeRounded">ShouldSerializeRounded()</a>
        </td>
        <td class="markdown level1 summary"><p>Specifies whether to save the value of the <a class="xref" href="C1.Win.Input.Styles.SwitchBaseStyle-1.Rounded.html#C1_Win_Input_Styles_SwitchBaseStyle_1_Rounded">Rounded</a> property.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
