# C1.WPF.ClearStyleExtensions

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_ClearStyleExtensions" data-uid="C1.WPF.ClearStyleExtensions" class="text-break">ClearStyleExtensions Class
</h1>
  <div class="markdown level0 summary"><p>Attached properties used to pass brushes to Microsoft controls.</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/system.windows.threading.dispatcherobject">DispatcherObject</a></div>
    <div class="level2"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.dependencyobject">DependencyObject</a></div>
    <div class="level3"><span class="xref">ClearStyleExtensions</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.WPF.html">C1.WPF</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.4.6.2.dll</h6>
  <h5 id="C1_WPF_ClearStyleExtensions_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class ClearStyleExtensions : DependencyObject</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class ClearStyleExtensions
    Inherits DependencyObject</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_ClearStyleExtensions__ctor" data-uid="C1.WPF.ClearStyleExtensions.#ctor">
          <a class="xref" href="C1.WPF.ClearStyleExtensions.-ctor.html#C1_WPF_ClearStyleExtensions__ctor">ClearStyleExtensions()</a>
        </td>
        <td class="markdown level1 summary"></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_ClearStyleExtensions_ButtonBackgroundProperty" data-uid="C1.WPF.ClearStyleExtensions.ButtonBackgroundProperty">
          <a class="xref" href="C1.WPF.ClearStyleExtensions.ButtonBackgroundProperty.html">ButtonBackgroundProperty</a>
        </td>
        <td class="markdown level1 summary"><p>This attached property can modify background of clear style button.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_ClearStyleExtensions_ButtonCornerRadiusProperty" data-uid="C1.WPF.ClearStyleExtensions.ButtonCornerRadiusProperty">
          <a class="xref" href="C1.WPF.ClearStyleExtensions.ButtonCornerRadiusProperty.html">ButtonCornerRadiusProperty</a>
        </td>
        <td class="markdown level1 summary"><p>This attached property can modify the corner radius of the buttons of a clear style control.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_ClearStyleExtensions_ButtonForegroundProperty" data-uid="C1.WPF.ClearStyleExtensions.ButtonForegroundProperty">
          <a class="xref" href="C1.WPF.ClearStyleExtensions.ButtonForegroundProperty.html">ButtonForegroundProperty</a>
        </td>
        <td class="markdown level1 summary"><p>This attached property can modify background of clear style button.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_ClearStyleExtensions_CaretBrushProperty" data-uid="C1.WPF.ClearStyleExtensions.CaretBrushProperty">
          <a class="xref" href="C1.WPF.ClearStyleExtensions.CaretBrushProperty.html">CaretBrushProperty</a>
        </td>
        <td class="markdown level1 summary"><p>This attached property can modify the caret visual style of a clear style control.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_ClearStyleExtensions_CornerRadiusProperty" data-uid="C1.WPF.ClearStyleExtensions.CornerRadiusProperty">
          <a class="xref" href="C1.WPF.ClearStyleExtensions.CornerRadiusProperty.html">CornerRadiusProperty</a>
        </td>
        <td class="markdown level1 summary"><p>This attached property can modify the focus visual style of a clear style control.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_ClearStyleExtensions_FocusBrushProperty" data-uid="C1.WPF.ClearStyleExtensions.FocusBrushProperty">
          <a class="xref" href="C1.WPF.ClearStyleExtensions.FocusBrushProperty.html">FocusBrushProperty</a>
        </td>
        <td class="markdown level1 summary"><p>This attached property can modify the focus visual style of a clear style control.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_ClearStyleExtensions_MouseOverBrushProperty" data-uid="C1.WPF.ClearStyleExtensions.MouseOverBrushProperty">
          <a class="xref" href="C1.WPF.ClearStyleExtensions.MouseOverBrushProperty.html">MouseOverBrushProperty</a>
        </td>
        <td class="markdown level1 summary"><p>This attached property can modify the mouse over visual style of a clear style control.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_ClearStyleExtensions_PressedBrushProperty" data-uid="C1.WPF.ClearStyleExtensions.PressedBrushProperty">
          <a class="xref" href="C1.WPF.ClearStyleExtensions.PressedBrushProperty.html">PressedBrushProperty</a>
        </td>
        <td class="markdown level1 summary"><p>This attached property can modify the pressed visual style of a clear style control.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_ClearStyleExtensions_ScrollBarStyleProperty" data-uid="C1.WPF.ClearStyleExtensions.ScrollBarStyleProperty">
          <a class="xref" href="C1.WPF.ClearStyleExtensions.ScrollBarStyleProperty.html">ScrollBarStyleProperty</a>
        </td>
        <td class="markdown level1 summary"><p>This attached property can modify the style of a scrollbar.</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_ClearStyleExtensions_GetButtonBackground_System_Windows_FrameworkElement_" data-uid="C1.WPF.ClearStyleExtensions.GetButtonBackground(System.Windows.FrameworkElement)">
          <a class="xref" href="C1.WPF.ClearStyleExtensions.GetButtonBackground.html#C1_WPF_ClearStyleExtensions_GetButtonBackground_System_Windows_FrameworkElement_">GetButtonBackground(FrameworkElement)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the clear style button background brush.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_ClearStyleExtensions_GetButtonCornerRadius_System_Windows_FrameworkElement_" data-uid="C1.WPF.ClearStyleExtensions.GetButtonCornerRadius(System.Windows.FrameworkElement)">
          <a class="xref" href="C1.WPF.ClearStyleExtensions.GetButtonCornerRadius.html#C1_WPF_ClearStyleExtensions_GetButtonCornerRadius_System_Windows_FrameworkElement_">GetButtonCornerRadius(FrameworkElement)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the CornerRadius of the buttons.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_ClearStyleExtensions_GetButtonForeground_System_Windows_FrameworkElement_" data-uid="C1.WPF.ClearStyleExtensions.GetButtonForeground(System.Windows.FrameworkElement)">
          <a class="xref" href="C1.WPF.ClearStyleExtensions.GetButtonForeground.html#C1_WPF_ClearStyleExtensions_GetButtonForeground_System_Windows_FrameworkElement_">GetButtonForeground(FrameworkElement)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the clear style button foreground brush.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_ClearStyleExtensions_GetCaretBrush_System_Windows_FrameworkElement_" data-uid="C1.WPF.ClearStyleExtensions.GetCaretBrush(System.Windows.FrameworkElement)">
          <a class="xref" href="C1.WPF.ClearStyleExtensions.GetCaretBrush.html#C1_WPF_ClearStyleExtensions_GetCaretBrush_System_Windows_FrameworkElement_">GetCaretBrush(FrameworkElement)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the caret brush.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_ClearStyleExtensions_GetCornerRadius_System_Windows_FrameworkElement_" data-uid="C1.WPF.ClearStyleExtensions.GetCornerRadius(System.Windows.FrameworkElement)">
          <a class="xref" href="C1.WPF.ClearStyleExtensions.GetCornerRadius.html#C1_WPF_ClearStyleExtensions_GetCornerRadius_System_Windows_FrameworkElement_">GetCornerRadius(FrameworkElement)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the CornerRadius.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_ClearStyleExtensions_GetFocusBrush_System_Windows_FrameworkElement_" data-uid="C1.WPF.ClearStyleExtensions.GetFocusBrush(System.Windows.FrameworkElement)">
          <a class="xref" href="C1.WPF.ClearStyleExtensions.GetFocusBrush.html#C1_WPF_ClearStyleExtensions_GetFocusBrush_System_Windows_FrameworkElement_">GetFocusBrush(FrameworkElement)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the focus brush.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_ClearStyleExtensions_GetMouseOverBrush_System_Windows_FrameworkElement_" data-uid="C1.WPF.ClearStyleExtensions.GetMouseOverBrush(System.Windows.FrameworkElement)">
          <a class="xref" href="C1.WPF.ClearStyleExtensions.GetMouseOverBrush.html#C1_WPF_ClearStyleExtensions_GetMouseOverBrush_System_Windows_FrameworkElement_">GetMouseOverBrush(FrameworkElement)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the mouse over brush.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_ClearStyleExtensions_GetPressedBrush_System_Windows_FrameworkElement_" data-uid="C1.WPF.ClearStyleExtensions.GetPressedBrush(System.Windows.FrameworkElement)">
          <a class="xref" href="C1.WPF.ClearStyleExtensions.GetPressedBrush.html#C1_WPF_ClearStyleExtensions_GetPressedBrush_System_Windows_FrameworkElement_">GetPressedBrush(FrameworkElement)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the pressed brush.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_ClearStyleExtensions_GetScrollBarStyle_System_Windows_FrameworkElement_" data-uid="C1.WPF.ClearStyleExtensions.GetScrollBarStyle(System.Windows.FrameworkElement)">
          <a class="xref" href="C1.WPF.ClearStyleExtensions.GetScrollBarStyle.html#C1_WPF_ClearStyleExtensions_GetScrollBarStyle_System_Windows_FrameworkElement_">GetScrollBarStyle(FrameworkElement)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the style of a scrollbar.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_ClearStyleExtensions_SetButtonBackground_System_Windows_FrameworkElement_System_Windows_Media_Brush_" data-uid="C1.WPF.ClearStyleExtensions.SetButtonBackground(System.Windows.FrameworkElement,System.Windows.Media.Brush)">
          <a class="xref" href="C1.WPF.ClearStyleExtensions.SetButtonBackground.html#C1_WPF_ClearStyleExtensions_SetButtonBackground_System_Windows_FrameworkElement_System_Windows_Media_Brush_">SetButtonBackground(FrameworkElement, Brush)</a>
        </td>
        <td class="markdown level1 summary"><p>Sets the clear style button background brush.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_ClearStyleExtensions_SetButtonCornerRadius_System_Windows_FrameworkElement_System_Windows_CornerRadius_" data-uid="C1.WPF.ClearStyleExtensions.SetButtonCornerRadius(System.Windows.FrameworkElement,System.Windows.CornerRadius)">
          <a class="xref" href="C1.WPF.ClearStyleExtensions.SetButtonCornerRadius.html#C1_WPF_ClearStyleExtensions_SetButtonCornerRadius_System_Windows_FrameworkElement_System_Windows_CornerRadius_">SetButtonCornerRadius(FrameworkElement, CornerRadius)</a>
        </td>
        <td class="markdown level1 summary"><p>Sets the CornerRadius of the buttons.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_ClearStyleExtensions_SetButtonForeground_System_Windows_FrameworkElement_System_Windows_Media_Brush_" data-uid="C1.WPF.ClearStyleExtensions.SetButtonForeground(System.Windows.FrameworkElement,System.Windows.Media.Brush)">
          <a class="xref" href="C1.WPF.ClearStyleExtensions.SetButtonForeground.html#C1_WPF_ClearStyleExtensions_SetButtonForeground_System_Windows_FrameworkElement_System_Windows_Media_Brush_">SetButtonForeground(FrameworkElement, Brush)</a>
        </td>
        <td class="markdown level1 summary"><p>Sets the clear style button foreground brush.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_ClearStyleExtensions_SetCaretBrush_System_Windows_FrameworkElement_System_Windows_Media_Brush_" data-uid="C1.WPF.ClearStyleExtensions.SetCaretBrush(System.Windows.FrameworkElement,System.Windows.Media.Brush)">
          <a class="xref" href="C1.WPF.ClearStyleExtensions.SetCaretBrush.html#C1_WPF_ClearStyleExtensions_SetCaretBrush_System_Windows_FrameworkElement_System_Windows_Media_Brush_">SetCaretBrush(FrameworkElement, Brush)</a>
        </td>
        <td class="markdown level1 summary"><p>Sets the caret brush.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_ClearStyleExtensions_SetCornerRadius_System_Windows_FrameworkElement_System_Windows_CornerRadius_" data-uid="C1.WPF.ClearStyleExtensions.SetCornerRadius(System.Windows.FrameworkElement,System.Windows.CornerRadius)">
          <a class="xref" href="C1.WPF.ClearStyleExtensions.SetCornerRadius.html#C1_WPF_ClearStyleExtensions_SetCornerRadius_System_Windows_FrameworkElement_System_Windows_CornerRadius_">SetCornerRadius(FrameworkElement, CornerRadius)</a>
        </td>
        <td class="markdown level1 summary"><p>Sets the CornerRadius.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_ClearStyleExtensions_SetFocusBrush_System_Windows_FrameworkElement_System_Windows_Media_Brush_" data-uid="C1.WPF.ClearStyleExtensions.SetFocusBrush(System.Windows.FrameworkElement,System.Windows.Media.Brush)">
          <a class="xref" href="C1.WPF.ClearStyleExtensions.SetFocusBrush.html#C1_WPF_ClearStyleExtensions_SetFocusBrush_System_Windows_FrameworkElement_System_Windows_Media_Brush_">SetFocusBrush(FrameworkElement, Brush)</a>
        </td>
        <td class="markdown level1 summary"><p>Sets the focus brush.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_ClearStyleExtensions_SetMouseOverBrush_System_Windows_FrameworkElement_System_Windows_Media_Brush_" data-uid="C1.WPF.ClearStyleExtensions.SetMouseOverBrush(System.Windows.FrameworkElement,System.Windows.Media.Brush)">
          <a class="xref" href="C1.WPF.ClearStyleExtensions.SetMouseOverBrush.html#C1_WPF_ClearStyleExtensions_SetMouseOverBrush_System_Windows_FrameworkElement_System_Windows_Media_Brush_">SetMouseOverBrush(FrameworkElement, Brush)</a>
        </td>
        <td class="markdown level1 summary"><p>Sets the mouse over brush.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_ClearStyleExtensions_SetPressedBrush_System_Windows_FrameworkElement_System_Windows_Media_Brush_" data-uid="C1.WPF.ClearStyleExtensions.SetPressedBrush(System.Windows.FrameworkElement,System.Windows.Media.Brush)">
          <a class="xref" href="C1.WPF.ClearStyleExtensions.SetPressedBrush.html#C1_WPF_ClearStyleExtensions_SetPressedBrush_System_Windows_FrameworkElement_System_Windows_Media_Brush_">SetPressedBrush(FrameworkElement, Brush)</a>
        </td>
        <td class="markdown level1 summary"><p>Sets the pressed brush.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_ClearStyleExtensions_SetScrollBarStyle_System_Windows_FrameworkElement_System_Windows_Style_" data-uid="C1.WPF.ClearStyleExtensions.SetScrollBarStyle(System.Windows.FrameworkElement,System.Windows.Style)">
          <a class="xref" href="C1.WPF.ClearStyleExtensions.SetScrollBarStyle.html#C1_WPF_ClearStyleExtensions_SetScrollBarStyle_System_Windows_FrameworkElement_System_Windows_Style_">SetScrollBarStyle(FrameworkElement, Style)</a>
        </td>
        <td class="markdown level1 summary"><p>Sets the style of a scrollbar.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
