MoreColor Option in WPF Color Picker Palette

In addition to colors in Theme colors and Standard colors, MoreColor feature allows you to select wide range of color options. MoreColor feature includes two categories namely Standard Colors and Custom Colors. The Standard Colors includes 140 colors clustered in the shape of a Hexagon. The color chosen from this cluster will also be added in the RecentlyUsedPanel. You can also set the visibility of the MoreColor Option by using the MoreColorOptionVisibility property.

Use Case Scenarios

MoreColor Option can be used when you want to select colors using standard and custom colors.

Adding MoreColor Option to an Application

MoreColor Option can be added to an application by using XAML or C# code.

The following code example illustrates how to add the MoreColor Option to an Application through XAML.

<sync:ColorPickerPalette x:Name="ColorPicker" 

MoreColorOptionVisibility="Visible" />

The following code example illustrates how to add the MoreColor Option to an Application through C#.

ColorPickerPalette colorpicker = new ColorPickerPalette();

colorpicker.MoreColorOptionVisibility = System.Visibility.Visible;

MoreColorIcon

The MoreColorIcon property used to set the Icon left to the More Color option .

<syncfusion:ColorPickerPalette x:Name="ColorPicker" MoreColorsIcon="More color.png"  MoreColorOptionVisibility="Visible"  Width="100" Height="23" />
ColorPicker.Icon = new BitmapImage(new Uri(@"color.png", UriKind.RelativeOrAbsolute));
ColorPicker.Icon = New BitmapImage(New Uri("color.png", UriKind.RelativeOrAbsolute))

MoreColorsIconSize

The MoreColorsIconSize property used to set the Size for the icon to be used for the MoreColorsIcon. Please find the code for the same:

ColorPicker.MoreColorsIconSize = new Size(100,100);
ColorPicker.MoreColorsIconSize = new Size(100,100)

Properties

Property Description Type Data Type Reference links
MoreColorOptionVisibility Enables or disables the visibility of the MoreColor Window. Dependency Property Visibility.Visible N/A

To view samples:

  1. Select Start -> Programs -> Syncfusion -> Essential Studio xx.x.x.xx -> Dashboard.
  2. Select Run Locally Installed Samples in WPF Button.
  3. Now Search ColorPickerPalette sample and launch it.