# C1.WPF.Extended.PropertyGrid.ColorPaletteEditor

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_Extended_PropertyGrid_ColorPaletteEditor" data-uid="C1.WPF.Extended.PropertyGrid.ColorPaletteEditor" class="text-break">ColorPaletteEditor Class
</h1>
  <div class="markdown level0 summary"><p>Default editor used by C1PropertyGrid to edit ColorPalette values.</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"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.itemscontrol">ItemsControl</a></div>
    <div class="level8"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.primitives.selector">Selector</a></div>
    <div class="level9"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.combobox">ComboBox</a></div>
    <div class="level10"><span class="xref">ColorPaletteEditor</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.windows.markup.iaddchild">IAddChild</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.primitives.icontainitemstorage">IContainItemStorage</a></div>
    <div><a class="xref" href="C1.WPF.Extended.ITypeMutipleEditorControl.html">ITypeMutipleEditorControl</a></div>
    <div><a class="xref" href="C1.WPF.Extended.ITypeEditorControl.html">ITypeEditorControl</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.WPF.Extended.PropertyGrid.html">C1.WPF.Extended.PropertyGrid</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.Extended.4.6.2.dll</h6>
  <h5 id="C1_WPF_Extended_PropertyGrid_ColorPaletteEditor_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class ColorPaletteEditor : ComboBox, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild, IContainItemStorage, ITypeMutipleEditorControl, ITypeEditorControl</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class ColorPaletteEditor
    Inherits ComboBox
    Implements IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild, IContainItemStorage, ITypeMutipleEditorControl, ITypeEditorControl</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_PropertyGrid_ColorPaletteEditor__ctor" data-uid="C1.WPF.Extended.PropertyGrid.ColorPaletteEditor.#ctor">
          <a class="xref" href="C1.WPF.Extended.PropertyGrid.ColorPaletteEditor.-ctor.html#C1_WPF_Extended_PropertyGrid_ColorPaletteEditor__ctor">ColorPaletteEditor()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.WPF.Extended.PropertyGrid.ColorPaletteEditor.html">ColorPaletteEditor</a> class.</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_PropertyGrid_ColorPaletteEditor_Attach_C1_WPF_Extended_PropertyAttribute_" data-uid="C1.WPF.Extended.PropertyGrid.ColorPaletteEditor.Attach(C1.WPF.Extended.PropertyAttribute)">
          <a class="xref" href="C1.WPF.Extended.PropertyGrid.ColorPaletteEditor.Attach.html#C1_WPF_Extended_PropertyGrid_ColorPaletteEditor_Attach_C1_WPF_Extended_PropertyAttribute_">Attach(PropertyAttribute)</a>
        </td>
        <td class="markdown level1 summary"><p>Attaches (initializes) the editor with the current property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Extended_PropertyGrid_ColorPaletteEditor_Attach_C1_WPF_Extended_PropertyGroup_" data-uid="C1.WPF.Extended.PropertyGrid.ColorPaletteEditor.Attach(C1.WPF.Extended.PropertyGroup)">
          <a class="xref" href="C1.WPF.Extended.PropertyGrid.ColorPaletteEditor.Attach.html#C1_WPF_Extended_PropertyGrid_ColorPaletteEditor_Attach_C1_WPF_Extended_PropertyGroup_">Attach(PropertyGroup)</a>
        </td>
        <td class="markdown level1 summary"><p>Attaches (initializes) the editor with the current Group.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Extended_PropertyGrid_ColorPaletteEditor_Create" data-uid="C1.WPF.Extended.PropertyGrid.ColorPaletteEditor.Create">
          <a class="xref" href="C1.WPF.Extended.PropertyGrid.ColorPaletteEditor.Create.html#C1_WPF_Extended_PropertyGrid_ColorPaletteEditor_Create">Create()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates ands initializes a new instance of the editor</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Extended_PropertyGrid_ColorPaletteEditor_Detach_C1_WPF_Extended_PropertyAttribute_" data-uid="C1.WPF.Extended.PropertyGrid.ColorPaletteEditor.Detach(C1.WPF.Extended.PropertyAttribute)">
          <a class="xref" href="C1.WPF.Extended.PropertyGrid.ColorPaletteEditor.Detach.html#C1_WPF_Extended_PropertyGrid_ColorPaletteEditor_Detach_C1_WPF_Extended_PropertyAttribute_">Detach(PropertyAttribute)</a>
        </td>
        <td class="markdown level1 summary"><p>Detaches (releases) the editor that was attached with the property passed as parameter.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Extended_PropertyGrid_ColorPaletteEditor_OnValueChanged" data-uid="C1.WPF.Extended.PropertyGrid.ColorPaletteEditor.OnValueChanged">
          <a class="xref" href="C1.WPF.Extended.PropertyGrid.ColorPaletteEditor.OnValueChanged.html#C1_WPF_Extended_PropertyGrid_ColorPaletteEditor_OnValueChanged">OnValueChanged()</a>
        </td>
        <td class="markdown level1 summary"><p>Called when value bound to this editor is changed.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Extended_PropertyGrid_ColorPaletteEditor_SetDefaultValue" data-uid="C1.WPF.Extended.PropertyGrid.ColorPaletteEditor.SetDefaultValue">
          <a class="xref" href="C1.WPF.Extended.PropertyGrid.ColorPaletteEditor.SetDefaultValue.html#C1_WPF_Extended_PropertyGrid_ColorPaletteEditor_SetDefaultValue">SetDefaultValue()</a>
        </td>
        <td class="markdown level1 summary"><p>set a value when all properties in the group has not a same property value</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Extended_PropertyGrid_ColorPaletteEditor_Supports_C1_WPF_Extended_PropertyAttribute_" data-uid="C1.WPF.Extended.PropertyGrid.ColorPaletteEditor.Supports(C1.WPF.Extended.PropertyAttribute)">
          <a class="xref" href="C1.WPF.Extended.PropertyGrid.ColorPaletteEditor.Supports.html#C1_WPF_Extended_PropertyGrid_ColorPaletteEditor_Supports_C1_WPF_Extended_PropertyAttribute_">Supports(PropertyAttribute)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns true if the editor supports (is able to show/edit) the property
values described by the PropertyAttribute.</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_PropertyGrid_ColorPaletteEditor_ValueChanged" data-uid="C1.WPF.Extended.PropertyGrid.ColorPaletteEditor.ValueChanged">
          <a class="xref" href="C1.WPF.Extended.PropertyGrid.ColorPaletteEditor.ValueChanged.html">ValueChanged</a>
        </td>
        <td class="markdown level1 summary"><p>Fired when the value of the current property has changed.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
