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
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
ItemsSourceproperty.
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
- PopupGallery.CanFilterProperty
- PopupGallery.CategorizedItemsSourceProperty
- PopupGallery.CategoryProperty
- PopupGallery.CategoryTemplateProperty
- PopupGallery.FilterCategoryProperty
- PopupGallery.InitialColumnCountProperty
- PopupGallery.IsCategorizedProperty
- PopupGallery.ItemCategoryDelegateProperty
- PopupGallery.UseSingleColumnProperty
- PopupGallery.VerticalScrollBarVisibilityProperty
- PopupGallery.GetCategory(DependencyObject)
- PopupGallery.SetCategory(DependencyObject, string)
- PopupGallery.OnScreenTipOpening(RoutedEventArgs)
- PopupGallery.PrepareContainerForItemOverride(DependencyObject, object)
- PopupGallery.CanFilter
- PopupGallery.CategorizedItemsSource
- PopupGallery.CategoryTemplate
- PopupGallery.FilterCategory
- PopupGallery.InitialColumnCount
- PopupGallery.IsCategorized
- PopupGallery.ItemCategoryDelegate
- PopupGallery.UseSingleColumn
- PopupGallery.VerticalScrollBarVisibility
- GalleryBase.ActiveItemChangedEvent
- GalleryBase.ItemClickEvent
- GalleryBase.SelectedItemChangedEvent
- GalleryBase.ActiveItemProperty
- GalleryBase.IsPreviewEnabledProperty
- GalleryBase.IsSelectionHighlightVisibleProperty
- GalleryBase.ItemSizeProperty
- GalleryBase.SelectedItemProperty
- GalleryBase.ZoomedInItemTemplateProperty
- GalleryBase.ZoomedInItemTemplateSelectorProperty
- GalleryBase.CoerceCommandParameter(DependencyObject, object)
- GalleryBase.ExtractDataItem(object)
- GalleryBase.GetContainerForItemOverride()
- GalleryBase.IsItemItsOwnContainerOverride(object)
- GalleryBase.OnActiveItemChanged(object, object)
- GalleryBase.OnClick(ExecuteRoutedEventArgs)
- GalleryBase.OnItemClick(ObjectItemRoutedEventArgs)
- GalleryBase.OnItemTemplateChanged(DataTemplate, DataTemplate)
- GalleryBase.OnMouseLeave(MouseEventArgs)
- GalleryBase.OnSelectedItemChanged(object, object)
- GalleryBase.UpdateCanExecute()
- GalleryBase.ActiveItem
- GalleryBase.IsPreviewEnabled
- GalleryBase.IsSelectionHighlightVisible
- GalleryBase.ItemSize
- GalleryBase.SelectedItem
- GalleryBase.ZoomedInItemTemplate
- GalleryBase.ZoomedInItemTemplateSelector
- GalleryBase.ActiveItemChanged
- GalleryBase.ItemClick
- GalleryBase.SelectedItemChanged
- ItemsControlBase.ClickEvent
- ItemsControlBase.PreviewClickEvent
- ItemsControlBase.ScreenTipClosingEvent
- ItemsControlBase.ScreenTipOpeningEvent
- ItemsControlBase.CommandProperty
- ItemsControlBase.CommandParameterProperty
- ItemsControlBase.CommandTargetProperty
- ItemsControlBase.ContextProperty
- ItemsControlBase.HasImageProperty
- ItemsControlBase.HasLabelProperty
- ItemsControlBase.IdProperty
- ItemsControlBase.ImageSourceLargeProperty
- ItemsControlBase.ImageSourceSmallProperty
- ItemsControlBase.IsHighlightedProperty
- ItemsControlBase.KeyTipAccessTextProperty
- ItemsControlBase.LabelProperty
- ItemsControlBase.ScreenTipDescriptionProperty
- ItemsControlBase.ScreenTipFooterProperty
- ItemsControlBase.ScreenTipHeaderProperty
- ItemsControlBase.ScreenTipHelpUriProperty
- ItemsControlBase.ScreenTipImageSourceProperty
- ItemsControlBase.VariantSizeProperty
- ItemsControlBase.OnCommandChanged(ICommand, ICommand)
- ItemsControlBase.OnContextChanged(ControlContext, ControlContext)
- ItemsControlBase.OnCreateAutomationPeer()
- ItemsControlBase.OnItemsChanged(NotifyCollectionChangedEventArgs)
- ItemsControlBase.OnKeyTipAccessed(string)
- ItemsControlBase.OnPreviewClick(ExecuteRoutedEventArgs)
- ItemsControlBase.OnPropertyChanged(DependencyPropertyChangedEventArgs)
- ItemsControlBase.OnScreenTipClosing(RoutedEventArgs)
- ItemsControlBase.OnValidateItems(IList)
- ItemsControlBase.OnVariantSizeChanged(VariantSize, VariantSize)
- ItemsControlBase.RaiseClickEvent(ExecuteRoutedEventArgs)
- ItemsControlBase.CanUpdateCanExecuteWhenHidden
- ItemsControlBase.Command
- ItemsControlBase.CommandParameter
- ItemsControlBase.CommandTarget
- ItemsControlBase.Context
- ItemsControlBase.HasImage
- ItemsControlBase.HasLabel
- ItemsControlBase.Id
- ItemsControlBase.ImageSourceLarge
- ItemsControlBase.ImageSourceSmall
- ItemsControlBase.IsHighlighted
- ItemsControlBase.KeyTipAccessText
- ItemsControlBase.Label
- ItemsControlBase.ScreenTipDescription
- ItemsControlBase.ScreenTipFooter
- ItemsControlBase.ScreenTipHeader
- ItemsControlBase.ScreenTipHelpUri
- ItemsControlBase.ScreenTipImageSource
- ItemsControlBase.VariantSize
- ItemsControlBase.Click
- ItemsControlBase.PreviewClick
- ItemsControlBase.ScreenTipClosing
- ItemsControlBase.ScreenTipOpening