# C1.WPF.ColorPicker.C1SpectrumPad

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_ColorPicker_C1SpectrumPad" data-uid="C1.WPF.ColorPicker.C1SpectrumPad" class="text-break">C1SpectrumPad Class
</h1>
  <div class="markdown level0 summary"><p>Control that shows a gradient color gamut allowing the user to chose the color by dragging an indicator.</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.media.visual">Visual</a></div>
    <div class="level2"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.uielement">UIElement</a></div>
    <div class="level3"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.frameworkelement">FrameworkElement</a></div>
    <div class="level4"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.control">Control</a></div>
    <div class="level5"><span class="xref">C1SpectrumPad</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><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.WPF.ColorPicker.html">C1.WPF.ColorPicker</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.ColorPicker.dll</h6>
  <h5 id="C1_WPF_ColorPicker_C1SpectrumPad_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[TemplatePart(Name = &quot;PadCanvas&quot;, Type = typeof(Canvas))]
[TemplatePart(Name = &quot;Indicator&quot;, Type = typeof(FrameworkElement))]
public class C1SpectrumPad : Control, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IDisposable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;TemplatePart(Name:=&quot;PadCanvas&quot;, Type:=GetType(Canvas))&gt;
&lt;TemplatePart(Name:=&quot;Indicator&quot;, Type:=GetType(FrameworkElement))&gt;
Public Class C1SpectrumPad
    Inherits Control
    Implements IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IDisposable</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_C1SpectrumPad__ctor" data-uid="C1.WPF.ColorPicker.C1SpectrumPad.#ctor">
          <a class="xref" href="C1.WPF.ColorPicker.C1SpectrumPad.-ctor.html#C1_WPF_ColorPicker_C1SpectrumPad__ctor">C1SpectrumPad()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.WPF.ColorPicker.C1SpectrumPad.html">C1SpectrumPad</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_C1SpectrumPad_ColorProperty" data-uid="C1.WPF.ColorPicker.C1SpectrumPad.ColorProperty">
          <a class="xref" href="C1.WPF.ColorPicker.C1SpectrumPad.ColorProperty.html">ColorProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.ColorPicker.C1SpectrumPad.Color.html#C1_WPF_ColorPicker_C1SpectrumPad_Color">Color</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_C1SpectrumPad_Color" data-uid="C1.WPF.ColorPicker.C1SpectrumPad.Color">
          <a class="xref" href="C1.WPF.ColorPicker.C1SpectrumPad.Color.html#C1_WPF_ColorPicker_C1SpectrumPad_Color">Color</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the color shown in the control.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_ColorPicker_C1SpectrumPad_IsDisposed" data-uid="C1.WPF.ColorPicker.C1SpectrumPad.IsDisposed">
          <a class="xref" href="C1.WPF.ColorPicker.C1SpectrumPad.IsDisposed.html#C1_WPF_ColorPicker_C1SpectrumPad_IsDisposed">IsDisposed</a>
        </td>
        <td class="markdown level1 summary"><p>Gets whether this instance is disposed.</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_C1SpectrumPad_Dispose" data-uid="C1.WPF.ColorPicker.C1SpectrumPad.Dispose">
          <a class="xref" href="C1.WPF.ColorPicker.C1SpectrumPad.Dispose.html#C1_WPF_ColorPicker_C1SpectrumPad_Dispose">Dispose()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WPF_ColorPicker_C1SpectrumPad_Dispose_System_Boolean_" data-uid="C1.WPF.ColorPicker.C1SpectrumPad.Dispose(System.Boolean)">
          <a class="xref" href="C1.WPF.ColorPicker.C1SpectrumPad.Dispose.html#C1_WPF_ColorPicker_C1SpectrumPad_Dispose_System_Boolean_">Dispose(bool)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WPF_ColorPicker_C1SpectrumPad_Finalize" data-uid="C1.WPF.ColorPicker.C1SpectrumPad.Finalize">
          <a class="xref" href="C1.WPF.ColorPicker.C1SpectrumPad.Finalize.html#C1_WPF_ColorPicker_C1SpectrumPad_Finalize">Finalize()</a>
        </td>
        <td class="markdown level1 summary"><p>Finalizes this instance of the <a class="xref" href="C1.WPF.ColorPicker.C1SpectrumPad.html">C1SpectrumPad</a> class.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_ColorPicker_C1SpectrumPad_OnApplyTemplate" data-uid="C1.WPF.ColorPicker.C1SpectrumPad.OnApplyTemplate">
          <a class="xref" href="C1.WPF.ColorPicker.C1SpectrumPad.OnApplyTemplate.html#C1_WPF_ColorPicker_C1SpectrumPad_OnApplyTemplate">OnApplyTemplate()</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_C1SpectrumPad_ColorChanged" data-uid="C1.WPF.ColorPicker.C1SpectrumPad.ColorChanged">
          <a class="xref" href="C1.WPF.ColorPicker.C1SpectrumPad.ColorChanged.html">ColorChanged</a>
        </td>
        <td class="markdown level1 summary"><p>Called when the color changed.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
