# C1.WPF.Extended.C1BasicColorPickerPart

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_Extended_C1BasicColorPickerPart" data-uid="C1.WPF.Extended.C1BasicColorPickerPart" class="text-break">C1BasicColorPickerPart Class
</h1>
  <div class="markdown level0 summary"><p>Control that shows a range of predefined colors from a specified palette.</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">C1BasicColorPickerPart</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_C1BasicColorPickerPart_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[TemplatePart(Name = &quot;StandardColors&quot;, Type = typeof(Grid))]
[TemplatePart(Name = &quot;RecentColors&quot;, Type = typeof(Grid))]
[TemplatePart(Name = &quot;ThemeColorsHeader&quot;, Type = typeof(Grid))]
[TemplatePart(Name = &quot;ThemeColorsValues&quot;, Type = typeof(Grid))]
[TemplatePart(Name = &quot;RecentColorsHeader&quot;, Type = typeof(FrameworkElement))]
[TemplatePart(Name = &quot;TransparentColor&quot;, Type = typeof(Grid))]
[StyleTypedProperty(Property = &quot;ColorContainerStyle&quot;, StyleTargetType = typeof(ItemsControl))]
public class C1BasicColorPickerPart : Control, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;TemplatePart(Name:=&quot;StandardColors&quot;, Type:=GetType(Grid))&gt;
&lt;TemplatePart(Name:=&quot;RecentColors&quot;, Type:=GetType(Grid))&gt;
&lt;TemplatePart(Name:=&quot;ThemeColorsHeader&quot;, Type:=GetType(Grid))&gt;
&lt;TemplatePart(Name:=&quot;ThemeColorsValues&quot;, Type:=GetType(Grid))&gt;
&lt;TemplatePart(Name:=&quot;RecentColorsHeader&quot;, Type:=GetType(FrameworkElement))&gt;
&lt;TemplatePart(Name:=&quot;TransparentColor&quot;, Type:=GetType(Grid))&gt;
&lt;StyleTypedProperty(Property:=&quot;ColorContainerStyle&quot;, StyleTargetType:=GetType(ItemsControl))&gt;
Public Class C1BasicColorPickerPart
    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_C1BasicColorPickerPart__ctor" data-uid="C1.WPF.Extended.C1BasicColorPickerPart.#ctor">
          <a class="xref" href="C1.WPF.Extended.C1BasicColorPickerPart.-ctor.html#C1_WPF_Extended_C1BasicColorPickerPart__ctor">C1BasicColorPickerPart()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of a <a class="xref" href="C1.WPF.Extended.C1BasicColorPickerPart.html">C1BasicColorPickerPart</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_C1BasicColorPickerPart_ColorContainerStyleProperty" data-uid="C1.WPF.Extended.C1BasicColorPickerPart.ColorContainerStyleProperty">
          <a class="xref" href="C1.WPF.Extended.C1BasicColorPickerPart.ColorContainerStyleProperty.html">ColorContainerStyleProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Extended.C1BasicColorPickerPart.ColorContainerStyle.html#C1_WPF_Extended_C1BasicColorPickerPart_ColorContainerStyle">ColorContainerStyle</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Extended_C1BasicColorPickerPart_PaletteProperty" data-uid="C1.WPF.Extended.C1BasicColorPickerPart.PaletteProperty">
          <a class="xref" href="C1.WPF.Extended.C1BasicColorPickerPart.PaletteProperty.html">PaletteProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Extended.C1BasicColorPickerPart.Palette.html#C1_WPF_Extended_C1BasicColorPickerPart_Palette">Palette</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Extended_C1BasicColorPickerPart_SelectedColorProperty" data-uid="C1.WPF.Extended.C1BasicColorPickerPart.SelectedColorProperty">
          <a class="xref" href="C1.WPF.Extended.C1BasicColorPickerPart.SelectedColorProperty.html">SelectedColorProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Extended.C1BasicColorPickerPart.SelectedColor.html#C1_WPF_Extended_C1BasicColorPickerPart_SelectedColor">SelectedColor</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Extended_C1BasicColorPickerPart_ShowRecentColorsProperty" data-uid="C1.WPF.Extended.C1BasicColorPickerPart.ShowRecentColorsProperty">
          <a class="xref" href="C1.WPF.Extended.C1BasicColorPickerPart.ShowRecentColorsProperty.html">ShowRecentColorsProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Extended.C1BasicColorPickerPart.ShowRecentColors.html#C1_WPF_Extended_C1BasicColorPickerPart_ShowRecentColors">ShowRecentColors</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Extended_C1BasicColorPickerPart_ShowTransparentColorProperty" data-uid="C1.WPF.Extended.C1BasicColorPickerPart.ShowTransparentColorProperty">
          <a class="xref" href="C1.WPF.Extended.C1BasicColorPickerPart.ShowTransparentColorProperty.html">ShowTransparentColorProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Extended.C1BasicColorPickerPart.ShowTransparentColor.html#C1_WPF_Extended_C1BasicColorPickerPart_ShowTransparentColor">ShowTransparentColor</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_C1BasicColorPickerPart_ColorContainerStyle" data-uid="C1.WPF.Extended.C1BasicColorPickerPart.ColorContainerStyle">
          <a class="xref" href="C1.WPF.Extended.C1BasicColorPickerPart.ColorContainerStyle.html#C1_WPF_Extended_C1BasicColorPickerPart_ColorContainerStyle">ColorContainerStyle</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the style of the ItemsControl used to show a section of colors (that is recent colors).</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Extended_C1BasicColorPickerPart_Palette" data-uid="C1.WPF.Extended.C1BasicColorPickerPart.Palette">
          <a class="xref" href="C1.WPF.Extended.C1BasicColorPickerPart.Palette.html#C1_WPF_Extended_C1BasicColorPickerPart_Palette">Palette</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the palette used to display predefined colors.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Extended_C1BasicColorPickerPart_SelectedColor" data-uid="C1.WPF.Extended.C1BasicColorPickerPart.SelectedColor">
          <a class="xref" href="C1.WPF.Extended.C1BasicColorPickerPart.SelectedColor.html#C1_WPF_Extended_C1BasicColorPickerPart_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_C1BasicColorPickerPart_ShowRecentColors" data-uid="C1.WPF.Extended.C1BasicColorPickerPart.ShowRecentColors">
          <a class="xref" href="C1.WPF.Extended.C1BasicColorPickerPart.ShowRecentColors.html#C1_WPF_Extended_C1BasicColorPickerPart_ShowRecentColors">ShowRecentColors</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether the recent colors should be shown.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Extended_C1BasicColorPickerPart_ShowTransparentColor" data-uid="C1.WPF.Extended.C1BasicColorPickerPart.ShowTransparentColor">
          <a class="xref" href="C1.WPF.Extended.C1BasicColorPickerPart.ShowTransparentColor.html#C1_WPF_Extended_C1BasicColorPickerPart_ShowTransparentColor">ShowTransparentColor</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether the transparent color is 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_C1BasicColorPickerPart_CreateColorButton_C1_WPF_Extended_ColorPaletteEntry_" data-uid="C1.WPF.Extended.C1BasicColorPickerPart.CreateColorButton(C1.WPF.Extended.ColorPaletteEntry)">
          <a class="xref" href="C1.WPF.Extended.C1BasicColorPickerPart.CreateColorButton.html#C1_WPF_Extended_C1BasicColorPickerPart_CreateColorButton_C1_WPF_Extended_ColorPaletteEntry_">CreateColorButton(ColorPaletteEntry)</a>
        </td>
        <td class="markdown level1 summary"><p>Override to change the default <a class="xref" href="C1.WPF.Extended.C1ColorButton.html">C1ColorButton</a> used for a <a class="xref" href="C1.WPF.Extended.ColorPaletteEntry.html">ColorPaletteEntry</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Extended_C1BasicColorPickerPart_CreateColorButton_System_Windows_Media_Color_" data-uid="C1.WPF.Extended.C1BasicColorPickerPart.CreateColorButton(System.Windows.Media.Color)">
          <a class="xref" href="C1.WPF.Extended.C1BasicColorPickerPart.CreateColorButton.html#C1_WPF_Extended_C1BasicColorPickerPart_CreateColorButton_System_Windows_Media_Color_">CreateColorButton(Color)</a>
        </td>
        <td class="markdown level1 summary"><p>Override to change the default <a class="xref" href="C1.WPF.Extended.C1ColorButton.html">C1ColorButton</a> used for a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.media.color">Color</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Extended_C1BasicColorPickerPart_CreateColorContainer" data-uid="C1.WPF.Extended.C1BasicColorPickerPart.CreateColorContainer">
          <a class="xref" href="C1.WPF.Extended.C1BasicColorPickerPart.CreateColorContainer.html#C1_WPF_Extended_C1BasicColorPickerPart_CreateColorContainer">CreateColorContainer()</a>
        </td>
        <td class="markdown level1 summary"><p>Override to change the default <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.itemscontrol">ItemsControl</a> used.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Extended_C1BasicColorPickerPart_OnApplyTemplate" data-uid="C1.WPF.Extended.C1BasicColorPickerPart.OnApplyTemplate">
          <a class="xref" href="C1.WPF.Extended.C1BasicColorPickerPart.OnApplyTemplate.html#C1_WPF_Extended_C1BasicColorPickerPart_OnApplyTemplate">OnApplyTemplate()</a>
        </td>
        <td class="markdown level1 summary"><p>Builds the visual tree for the <a class="xref" href="C1.WPF.Extended.C1BasicColorPickerPart.html">C1BasicColorPickerPart</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_C1BasicColorPickerPart_ColorPicked" data-uid="C1.WPF.Extended.C1BasicColorPickerPart.ColorPicked">
          <a class="xref" href="C1.WPF.Extended.C1BasicColorPickerPart.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_C1BasicColorPickerPart_SelectedColorChanged" data-uid="C1.WPF.Extended.C1BasicColorPickerPart.SelectedColorChanged">
          <a class="xref" href="C1.WPF.Extended.C1BasicColorPickerPart.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>
