# C1.WPF.ColorPicker.C1BrushPicker

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_ColorPicker_C1BrushPicker" data-uid="C1.WPF.ColorPicker.C1BrushPicker" class="text-break">C1BrushPicker Class
</h1>
  <div class="markdown level0 summary"><p>The brush picker control allows end-users to build solid or gradient brushes by selecting their colors and other properties in an interactive way.</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">C1BrushPicker</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.WPF.ColorPicker.html">C1.WPF.ColorPicker</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.ColorPicker.dll</h6>
  <h5 id="C1_WPF_ColorPicker_C1BrushPicker_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[StyleTypedProperty(Property = &quot;ValidationDecoratorStyle&quot;, StyleTargetType = typeof(C1ValidationDecorator))]
[StyleTypedProperty(Property = &quot;PopupStyle&quot;, StyleTargetType = typeof(C1PopupBorder))]
[TemplatePart(Name = &quot;DropDown&quot;, Type = typeof(C1DropDownButton))]
[TemplatePart(Name = &quot;BrushEditor&quot;, Type = typeof(C1BrushEditor))]
[TemplatePart(Name = &quot;ValidationDecorator&quot;, Type = typeof(C1ValidationDecorator))]
public class C1BrushPicker : C1View</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;StyleTypedProperty(Property:=&quot;ValidationDecoratorStyle&quot;, StyleTargetType:=GetType(C1ValidationDecorator))&gt;
&lt;StyleTypedProperty(Property:=&quot;PopupStyle&quot;, StyleTargetType:=GetType(C1PopupBorder))&gt;
&lt;TemplatePart(Name:=&quot;DropDown&quot;, Type:=GetType(C1DropDownButton))&gt;
&lt;TemplatePart(Name:=&quot;BrushEditor&quot;, Type:=GetType(C1BrushEditor))&gt;
&lt;TemplatePart(Name:=&quot;ValidationDecorator&quot;, Type:=GetType(C1ValidationDecorator))&gt;
Public Class C1BrushPicker
    Inherits C1View</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_ColorPicker_C1BrushPicker__ctor" data-uid="C1.WPF.ColorPicker.C1BrushPicker.#ctor">
          <a class="xref" href="C1.WPF.ColorPicker.C1BrushPicker.-ctor.html#C1_WPF_ColorPicker_C1BrushPicker__ctor">C1BrushPicker()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.WPF.ColorPicker.C1BrushPicker.html">C1BrushPicker</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_WPF_ColorPicker_C1BrushPicker_DropDownDirectionProperty" data-uid="C1.WPF.ColorPicker.C1BrushPicker.DropDownDirectionProperty">
          <a class="xref" href="C1.WPF.ColorPicker.C1BrushPicker.DropDownDirectionProperty.html">DropDownDirectionProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.ColorPicker.C1BrushPicker.DropDownDirection.html#C1_WPF_ColorPicker_C1BrushPicker_DropDownDirection">DropDownDirection</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_ColorPicker_C1BrushPicker_FocusBrushProperty" data-uid="C1.WPF.ColorPicker.C1BrushPicker.FocusBrushProperty">
          <a class="xref" href="C1.WPF.ColorPicker.C1BrushPicker.FocusBrushProperty.html">FocusBrushProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.ColorPicker.C1BrushPicker.FocusBrush.html#C1_WPF_ColorPicker_C1BrushPicker_FocusBrush">FocusBrush</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_ColorPicker_C1BrushPicker_IsDropDownOpenProperty" data-uid="C1.WPF.ColorPicker.C1BrushPicker.IsDropDownOpenProperty">
          <a class="xref" href="C1.WPF.ColorPicker.C1BrushPicker.IsDropDownOpenProperty.html">IsDropDownOpenProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.ColorPicker.C1BrushPicker.IsDropDownOpen.html#C1_WPF_ColorPicker_C1BrushPicker_IsDropDownOpen">IsDropDownOpen</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_ColorPicker_C1BrushPicker_MouseOverBorderBrushProperty" data-uid="C1.WPF.ColorPicker.C1BrushPicker.MouseOverBorderBrushProperty">
          <a class="xref" href="C1.WPF.ColorPicker.C1BrushPicker.MouseOverBorderBrushProperty.html">MouseOverBorderBrushProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.ColorPicker.C1BrushPicker.MouseOverBorderBrush.html#C1_WPF_ColorPicker_C1BrushPicker_MouseOverBorderBrush">MouseOverBorderBrush</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_ColorPicker_C1BrushPicker_MouseOverBrushProperty" data-uid="C1.WPF.ColorPicker.C1BrushPicker.MouseOverBrushProperty">
          <a class="xref" href="C1.WPF.ColorPicker.C1BrushPicker.MouseOverBrushProperty.html">MouseOverBrushProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.ColorPicker.C1BrushPicker.MouseOverBrush.html#C1_WPF_ColorPicker_C1BrushPicker_MouseOverBrush">MouseOverBrush</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_ColorPicker_C1BrushPicker_PopupStyleProperty" data-uid="C1.WPF.ColorPicker.C1BrushPicker.PopupStyleProperty">
          <a class="xref" href="C1.WPF.ColorPicker.C1BrushPicker.PopupStyleProperty.html">PopupStyleProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.ColorPicker.C1BrushPicker.PopupStyle.html#C1_WPF_ColorPicker_C1BrushPicker_PopupStyle">PopupStyle</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_ColorPicker_C1BrushPicker_PressedBrushProperty" data-uid="C1.WPF.ColorPicker.C1BrushPicker.PressedBrushProperty">
          <a class="xref" href="C1.WPF.ColorPicker.C1BrushPicker.PressedBrushProperty.html">PressedBrushProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.ColorPicker.C1BrushPicker.PressedBrush.html#C1_WPF_ColorPicker_C1BrushPicker_PressedBrush">PressedBrush</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_ColorPicker_C1BrushPicker_SelectedBrushProperty" data-uid="C1.WPF.ColorPicker.C1BrushPicker.SelectedBrushProperty">
          <a class="xref" href="C1.WPF.ColorPicker.C1BrushPicker.SelectedBrushProperty.html">SelectedBrushProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.ColorPicker.C1BrushPicker.SelectedBrush.html#C1_WPF_ColorPicker_C1BrushPicker_SelectedBrush">SelectedBrush</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_ColorPicker_C1BrushPicker_ValidationDecoratorStyleProperty" data-uid="C1.WPF.ColorPicker.C1BrushPicker.ValidationDecoratorStyleProperty">
          <a class="xref" href="C1.WPF.ColorPicker.C1BrushPicker.ValidationDecoratorStyleProperty.html">ValidationDecoratorStyleProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.ColorPicker.C1BrushPicker.ValidationDecoratorStyle.html#C1_WPF_ColorPicker_C1BrushPicker_ValidationDecoratorStyle">ValidationDecoratorStyle</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_WPF_ColorPicker_C1BrushPicker_DropDownDirection" data-uid="C1.WPF.ColorPicker.C1BrushPicker.DropDownDirection">
          <a class="xref" href="C1.WPF.ColorPicker.C1BrushPicker.DropDownDirection.html#C1_WPF_ColorPicker_C1BrushPicker_DropDownDirection">DropDownDirection</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the expand direction of the control drop down.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_ColorPicker_C1BrushPicker_FocusBrush" data-uid="C1.WPF.ColorPicker.C1BrushPicker.FocusBrush">
          <a class="xref" href="C1.WPF.ColorPicker.C1BrushPicker.FocusBrush.html#C1_WPF_ColorPicker_C1BrushPicker_FocusBrush">FocusBrush</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.media.brush">Brush</a> used to highlight the focused control.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_ColorPicker_C1BrushPicker_IsDropDownOpen" data-uid="C1.WPF.ColorPicker.C1BrushPicker.IsDropDownOpen">
          <a class="xref" href="C1.WPF.ColorPicker.C1BrushPicker.IsDropDownOpen.html#C1_WPF_ColorPicker_C1BrushPicker_IsDropDownOpen">IsDropDownOpen</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether the drop down is opened or closed.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_ColorPicker_C1BrushPicker_MouseOverBorderBrush" data-uid="C1.WPF.ColorPicker.C1BrushPicker.MouseOverBorderBrush">
          <a class="xref" href="C1.WPF.ColorPicker.C1BrushPicker.MouseOverBorderBrush.html#C1_WPF_ColorPicker_C1BrushPicker_MouseOverBorderBrush">MouseOverBorderBrush</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.media.brush">Brush</a> used to highlight the border of the control when it has the mouse over.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_ColorPicker_C1BrushPicker_MouseOverBrush" data-uid="C1.WPF.ColorPicker.C1BrushPicker.MouseOverBrush">
          <a class="xref" href="C1.WPF.ColorPicker.C1BrushPicker.MouseOverBrush.html#C1_WPF_ColorPicker_C1BrushPicker_MouseOverBrush">MouseOverBrush</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.media.brush">Brush</a> used to highlight the control when it has the mouse over.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_ColorPicker_C1BrushPicker_PopupStyle" data-uid="C1.WPF.ColorPicker.C1BrushPicker.PopupStyle">
          <a class="xref" href="C1.WPF.ColorPicker.C1BrushPicker.PopupStyle.html#C1_WPF_ColorPicker_C1BrushPicker_PopupStyle">PopupStyle</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.style">Style</a> applied to the popup.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_ColorPicker_C1BrushPicker_PressedBrush" data-uid="C1.WPF.ColorPicker.C1BrushPicker.PressedBrush">
          <a class="xref" href="C1.WPF.ColorPicker.C1BrushPicker.PressedBrush.html#C1_WPF_ColorPicker_C1BrushPicker_PressedBrush">PressedBrush</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.media.brush">Brush</a> used to paint a button when it is pressed.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_ColorPicker_C1BrushPicker_SelectedBrush" data-uid="C1.WPF.ColorPicker.C1BrushPicker.SelectedBrush">
          <a class="xref" href="C1.WPF.ColorPicker.C1BrushPicker.SelectedBrush.html#C1_WPF_ColorPicker_C1BrushPicker_SelectedBrush">SelectedBrush</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the currently selected color as a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.media.brush">Brush</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_ColorPicker_C1BrushPicker_ValidationDecoratorStyle" data-uid="C1.WPF.ColorPicker.C1BrushPicker.ValidationDecoratorStyle">
          <a class="xref" href="C1.WPF.ColorPicker.C1BrushPicker.ValidationDecoratorStyle.html#C1_WPF_ColorPicker_C1BrushPicker_ValidationDecoratorStyle">ValidationDecoratorStyle</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the style that is applied to the inner <span class="xref">C1.WPF.Input.C1ValidationDecorator</span>.</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_ColorPicker_C1BrushPicker_Dispose_System_Boolean_" data-uid="C1.WPF.ColorPicker.C1BrushPicker.Dispose(System.Boolean)">
          <a class="xref" href="C1.WPF.ColorPicker.C1BrushPicker.Dispose.html#C1_WPF_ColorPicker_C1BrushPicker_Dispose_System_Boolean_">Dispose(bool)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WPF_ColorPicker_C1BrushPicker_OnApplyTemplate" data-uid="C1.WPF.ColorPicker.C1BrushPicker.OnApplyTemplate">
          <a class="xref" href="C1.WPF.ColorPicker.C1BrushPicker.OnApplyTemplate.html#C1_WPF_ColorPicker_C1BrushPicker_OnApplyTemplate">OnApplyTemplate()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WPF_ColorPicker_C1BrushPicker_OnGotFocus_System_Windows_RoutedEventArgs_" data-uid="C1.WPF.ColorPicker.C1BrushPicker.OnGotFocus(System.Windows.RoutedEventArgs)">
          <a class="xref" href="C1.WPF.ColorPicker.C1BrushPicker.OnGotFocus.html#C1_WPF_ColorPicker_C1BrushPicker_OnGotFocus_System_Windows_RoutedEventArgs_">OnGotFocus(RoutedEventArgs)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WPF_ColorPicker_C1BrushPicker_OnKeyDown_System_Windows_Input_KeyEventArgs_" data-uid="C1.WPF.ColorPicker.C1BrushPicker.OnKeyDown(System.Windows.Input.KeyEventArgs)">
          <a class="xref" href="C1.WPF.ColorPicker.C1BrushPicker.OnKeyDown.html#C1_WPF_ColorPicker_C1BrushPicker_OnKeyDown_System_Windows_Input_KeyEventArgs_">OnKeyDown(KeyEventArgs)</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_WPF_ColorPicker_C1BrushPicker_SelectedBrushChanged" data-uid="C1.WPF.ColorPicker.C1BrushPicker.SelectedBrushChanged">
          <a class="xref" href="C1.WPF.ColorPicker.C1BrushPicker.SelectedBrushChanged.html">SelectedBrushChanged</a>
        </td>
        <td class="markdown level1 summary"><p>Event raised when the <a class="xref" href="C1.WPF.ColorPicker.C1BrushPicker.SelectedBrush.html#C1_WPF_ColorPicker_C1BrushPicker_SelectedBrush">SelectedBrush</a> property has changed.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
