# C1.WPF.ClearStyleExtensions.SetPressedBrush

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WPF_ClearStyleExtensions_SetPressedBrush_" data-uid="C1.WPF.ClearStyleExtensions.SetPressedBrush*">SetPressedBrush Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WPF_ClearStyleExtensions_SetPressedBrush_" data-uid="C1.WPF.ClearStyleExtensions.SetPressedBrush*"></a>
<h4 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)">SetPressedBrush(FrameworkElement, Brush)</h4>
<div class="markdown level1 summary"><p>Sets the pressed brush.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static void SetPressedBrush(FrameworkElement element, Brush value)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Sub SetPressedBrush(element As FrameworkElement, value As Brush)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.frameworkelement">FrameworkElement</a></td>
      <td><span class="parametername">element</span></td>
      <td><p>The element which contains the attached property.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.media.brush">Brush</a></td>
      <td><span class="parametername">value</span></td>
      <td><p>The brush used in the pressed state.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
