In This Article

ColorPickerGallery Class

Represents a gallery control that supports Office-like color selection, via SolidColorBrush values.

public class ColorPickerGallery : PopupGallery, IKeyTipTarget, ILogicalParent, IVariantControl
Inheritance:
object Visual UIElement FrameworkElement Control ItemsControl ItemsControlBase GalleryBase PopupGallery object
Implements:
IKeyTipTarget ILogicalParent IVariantControl

Remarks

For detailed documentation on this control's features and how to use them, please see the ColorPickerGallery documentation topic.

Constructors

ColorPickerGallery()

Initializes an instance of the class.

public ColorPickerGallery()

Properties

DefaultThemeColors

Gets an array of default theme colors.

public static Color[] DefaultThemeColors { get; }

Property Value

Color[]:

An array of default theme colors.

Remarks

This array can be used to programmatically build SolidColorBrush items for this gallery.

StandardColors

Gets an array of standard colors.

public static Color[] StandardColors { get; }

Property Value

Color[]:

An array of standard colors.

Remarks

This array can be used to programmatically build SolidColorBrush items for this gallery.

Methods

GetCategorizedItemsSource()

Returns the IEnumerable that is the CategorizedItemsSource used to initialize a view for the ItemsSource property.

protected override IEnumerable GetCategorizedItemsSource()

Returns

IEnumerable:

The IEnumerable that is the CategorizedItemsSource used to initialize a view for the ItemsSource property.

GetLayoutBehavior(DependencyObject)

Gets the value of the LayoutBehavior attached property for the specified object.

public static ColorPickerGalleryItemLayoutBehavior GetLayoutBehavior(DependencyObject obj)
Parameter Type Description
obj DependencyObject

The object from which the property value is read.

Returns

ColorPickerGalleryItemLayoutBehavior:

The object's value.

SetLayoutBehavior(DependencyObject, ColorPickerGalleryItemLayoutBehavior)

Sets the value of the LayoutBehavior attached property to the specified object.

public static void SetLayoutBehavior(DependencyObject obj, ColorPickerGalleryItemLayoutBehavior value)
Parameter Type Description
obj DependencyObject

The object to which the attached property is written.

value ColorPickerGalleryItemLayoutBehavior

The value to set.

Fields

LayoutBehaviorProperty

Identifies the LayoutBehavior dependency property. This field is read-only.

public static readonly DependencyProperty LayoutBehaviorProperty

Inherited Members