# C1.WPF.Extended.C1AdvancedColorPickerPart

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_Extended_C1AdvancedColorPickerPart" data-uid="C1.WPF.Extended.C1AdvancedColorPickerPart" class="text-break">C1AdvancedColorPickerPart Class
</h1>
  <div class="markdown level0 summary"><p>Control that allows the user to create a personalized color by changing
the different components of the HSL or RGB representation of the color.</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"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.media.visual">Visual</a></div>
    <div class="level4"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.uielement">UIElement</a></div>
    <div class="level5"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.frameworkelement">FrameworkElement</a></div>
    <div class="level6"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.control">Control</a></div>
    <div class="level7"><span class="xref">C1AdvancedColorPickerPart</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.media.animation.ianimatable">IAnimatable</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.iframeworkinputelement">IFrameworkInputElement</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.iinputelement">IInputElement</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.isupportinitialize">ISupportInitialize</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.markup.iqueryambient">IQueryAmbient</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.WPF.Extended.html">C1.WPF.Extended</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.Extended.4.6.2.dll</h6>
  <h5 id="C1_WPF_Extended_C1AdvancedColorPickerPart_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[TemplatePart(Name = &quot;Preview&quot;, Type = typeof(C1CheckeredBorder))]
[TemplatePart(Name = &quot;InputRed&quot;, Type = typeof(C1NumericBox))]
[TemplatePart(Name = &quot;InputGreen&quot;, Type = typeof(C1NumericBox))]
[TemplatePart(Name = &quot;InputBlue&quot;, Type = typeof(C1NumericBox))]
[TemplatePart(Name = &quot;InputLuminance&quot;, Type = typeof(C1NumericBox))]
[TemplatePart(Name = &quot;InputHue&quot;, Type = typeof(C1NumericBox))]
[TemplatePart(Name = &quot;InputSaturation&quot;, Type = typeof(C1NumericBox))]
[TemplatePart(Name = &quot;InputAlpha&quot;, Type = typeof(C1NumericBox))]
[TemplatePart(Name = &quot;InputWeb&quot;, Type = typeof(C1HexColorBox))]
[TemplatePart(Name = &quot;Spectrum&quot;, Type = typeof(C1SpectrumColorPicker))]
[TemplatePart(Name = &quot;OkButton&quot;, Type = typeof(Button))]
public class C1AdvancedColorPickerPart : Control, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;TemplatePart(Name:=&quot;Preview&quot;, Type:=GetType(C1CheckeredBorder))&gt;
&lt;TemplatePart(Name:=&quot;InputRed&quot;, Type:=GetType(C1NumericBox))&gt;
&lt;TemplatePart(Name:=&quot;InputGreen&quot;, Type:=GetType(C1NumericBox))&gt;
&lt;TemplatePart(Name:=&quot;InputBlue&quot;, Type:=GetType(C1NumericBox))&gt;
&lt;TemplatePart(Name:=&quot;InputLuminance&quot;, Type:=GetType(C1NumericBox))&gt;
&lt;TemplatePart(Name:=&quot;InputHue&quot;, Type:=GetType(C1NumericBox))&gt;
&lt;TemplatePart(Name:=&quot;InputSaturation&quot;, Type:=GetType(C1NumericBox))&gt;
&lt;TemplatePart(Name:=&quot;InputAlpha&quot;, Type:=GetType(C1NumericBox))&gt;
&lt;TemplatePart(Name:=&quot;InputWeb&quot;, Type:=GetType(C1HexColorBox))&gt;
&lt;TemplatePart(Name:=&quot;Spectrum&quot;, Type:=GetType(C1SpectrumColorPicker))&gt;
&lt;TemplatePart(Name:=&quot;OkButton&quot;, Type:=GetType(Button))&gt;
Public Class C1AdvancedColorPickerPart
    Inherits Control
    Implements IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient</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_Extended_C1AdvancedColorPickerPart__ctor" data-uid="C1.WPF.Extended.C1AdvancedColorPickerPart.#ctor">
          <a class="xref" href="C1.WPF.Extended.C1AdvancedColorPickerPart.-ctor.html#C1_WPF_Extended_C1AdvancedColorPickerPart__ctor">C1AdvancedColorPickerPart()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of a <a class="xref" href="C1.WPF.Extended.C1AdvancedColorPickerPart.html">C1AdvancedColorPickerPart</a>.</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_Extended_C1AdvancedColorPickerPart_FocusBrushProperty" data-uid="C1.WPF.Extended.C1AdvancedColorPickerPart.FocusBrushProperty">
          <a class="xref" href="C1.WPF.Extended.C1AdvancedColorPickerPart.FocusBrushProperty.html">FocusBrushProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Extended.C1AdvancedColorPickerPart.FocusBrush.html#C1_WPF_Extended_C1AdvancedColorPickerPart_FocusBrush">FocusBrush</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Extended_C1AdvancedColorPickerPart_InputBackgroundProperty" data-uid="C1.WPF.Extended.C1AdvancedColorPickerPart.InputBackgroundProperty">
          <a class="xref" href="C1.WPF.Extended.C1AdvancedColorPickerPart.InputBackgroundProperty.html">InputBackgroundProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Extended.C1AdvancedColorPickerPart.InputBackground.html#C1_WPF_Extended_C1AdvancedColorPickerPart_InputBackground">InputBackground</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Extended_C1AdvancedColorPickerPart_InputForegroundProperty" data-uid="C1.WPF.Extended.C1AdvancedColorPickerPart.InputForegroundProperty">
          <a class="xref" href="C1.WPF.Extended.C1AdvancedColorPickerPart.InputForegroundProperty.html">InputForegroundProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Extended.C1AdvancedColorPickerPart.InputForeground.html#C1_WPF_Extended_C1AdvancedColorPickerPart_InputForeground">InputForeground</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Extended_C1AdvancedColorPickerPart_MouseOverBrushProperty" data-uid="C1.WPF.Extended.C1AdvancedColorPickerPart.MouseOverBrushProperty">
          <a class="xref" href="C1.WPF.Extended.C1AdvancedColorPickerPart.MouseOverBrushProperty.html">MouseOverBrushProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Extended.C1AdvancedColorPickerPart.MouseOverBrush.html#C1_WPF_Extended_C1AdvancedColorPickerPart_MouseOverBrush">MouseOverBrush</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Extended_C1AdvancedColorPickerPart_PressedBrushProperty" data-uid="C1.WPF.Extended.C1AdvancedColorPickerPart.PressedBrushProperty">
          <a class="xref" href="C1.WPF.Extended.C1AdvancedColorPickerPart.PressedBrushProperty.html">PressedBrushProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Extended.C1AdvancedColorPickerPart.PressedBrush.html#C1_WPF_Extended_C1AdvancedColorPickerPart_PressedBrush">PressedBrush</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Extended_C1AdvancedColorPickerPart_SelectedColorProperty" data-uid="C1.WPF.Extended.C1AdvancedColorPickerPart.SelectedColorProperty">
          <a class="xref" href="C1.WPF.Extended.C1AdvancedColorPickerPart.SelectedColorProperty.html">SelectedColorProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Extended.C1AdvancedColorPickerPart.SelectedColor.html#C1_WPF_Extended_C1AdvancedColorPickerPart_SelectedColor">SelectedColor</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Extended_C1AdvancedColorPickerPart_ShowAlphaChannelProperty" data-uid="C1.WPF.Extended.C1AdvancedColorPickerPart.ShowAlphaChannelProperty">
          <a class="xref" href="C1.WPF.Extended.C1AdvancedColorPickerPart.ShowAlphaChannelProperty.html">ShowAlphaChannelProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Extended.C1AdvancedColorPickerPart.ShowAlphaChannel.html#C1_WPF_Extended_C1AdvancedColorPickerPart_ShowAlphaChannel">ShowAlphaChannel</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_Extended_C1AdvancedColorPickerPart_FocusBrush" data-uid="C1.WPF.Extended.C1AdvancedColorPickerPart.FocusBrush">
          <a class="xref" href="C1.WPF.Extended.C1AdvancedColorPickerPart.FocusBrush.html#C1_WPF_Extended_C1AdvancedColorPickerPart_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_Extended_C1AdvancedColorPickerPart_InputBackground" data-uid="C1.WPF.Extended.C1AdvancedColorPickerPart.InputBackground">
          <a class="xref" href="C1.WPF.Extended.C1AdvancedColorPickerPart.InputBackground.html#C1_WPF_Extended_C1AdvancedColorPickerPart_InputBackground">InputBackground</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> that fills the background of the input control.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Extended_C1AdvancedColorPickerPart_InputForeground" data-uid="C1.WPF.Extended.C1AdvancedColorPickerPart.InputForeground">
          <a class="xref" href="C1.WPF.Extended.C1AdvancedColorPickerPart.InputForeground.html#C1_WPF_Extended_C1AdvancedColorPickerPart_InputForeground">InputForeground</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> applied to the text inside an input control when this text is not selected.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Extended_C1AdvancedColorPickerPart_MouseOverBrush" data-uid="C1.WPF.Extended.C1AdvancedColorPickerPart.MouseOverBrush">
          <a class="xref" href="C1.WPF.Extended.C1AdvancedColorPickerPart.MouseOverBrush.html#C1_WPF_Extended_C1AdvancedColorPickerPart_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_Extended_C1AdvancedColorPickerPart_PressedBrush" data-uid="C1.WPF.Extended.C1AdvancedColorPickerPart.PressedBrush">
          <a class="xref" href="C1.WPF.Extended.C1AdvancedColorPickerPart.PressedBrush.html#C1_WPF_Extended_C1AdvancedColorPickerPart_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_Extended_C1AdvancedColorPickerPart_SelectedColor" data-uid="C1.WPF.Extended.C1AdvancedColorPickerPart.SelectedColor">
          <a class="xref" href="C1.WPF.Extended.C1AdvancedColorPickerPart.SelectedColor.html#C1_WPF_Extended_C1AdvancedColorPickerPart_SelectedColor">SelectedColor</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the currently selected color.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Extended_C1AdvancedColorPickerPart_ShowAlphaChannel" data-uid="C1.WPF.Extended.C1AdvancedColorPickerPart.ShowAlphaChannel">
          <a class="xref" href="C1.WPF.Extended.C1AdvancedColorPickerPart.ShowAlphaChannel.html#C1_WPF_Extended_C1AdvancedColorPickerPart_ShowAlphaChannel">ShowAlphaChannel</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether the alpha channel must be shown.</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_Extended_C1AdvancedColorPickerPart_OnApplyTemplate" data-uid="C1.WPF.Extended.C1AdvancedColorPickerPart.OnApplyTemplate">
          <a class="xref" href="C1.WPF.Extended.C1AdvancedColorPickerPart.OnApplyTemplate.html#C1_WPF_Extended_C1AdvancedColorPickerPart_OnApplyTemplate">OnApplyTemplate()</a>
        </td>
        <td class="markdown level1 summary"><p>Builds the visual tree for the <a class="xref" href="C1.WPF.Extended.C1AdvancedColorPickerPart.html">C1AdvancedColorPickerPart</a> control when a new template is applied.</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_WPF_Extended_C1AdvancedColorPickerPart_ColorPicked" data-uid="C1.WPF.Extended.C1AdvancedColorPickerPart.ColorPicked">
          <a class="xref" href="C1.WPF.Extended.C1AdvancedColorPickerPart.ColorPicked.html">ColorPicked</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when a color is chosen.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Extended_C1AdvancedColorPickerPart_SelectedColorChanged" data-uid="C1.WPF.Extended.C1AdvancedColorPickerPart.SelectedColorChanged">
          <a class="xref" href="C1.WPF.Extended.C1AdvancedColorPickerPart.SelectedColorChanged.html">SelectedColorChanged</a>
        </td>
        <td class="markdown level1 summary"><p>Event raised when the <span class="xref">SelectedColor</span> property has changed.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
