Class ColorPickerPalette
Color Picker(Palette)
Inheritance
Implements
Namespace: Syncfusion.Windows.Tools.Controls
Assembly: Syncfusion.Shared.WPF.dll
Syntax
[SkinType]
[SkinType]
[SkinType]
[SkinType]
[SkinType]
[SkinType]
[SkinType]
[SkinType]
[SkinType]
[SkinType]
[SkinType]
[SkinType]
[SkinType]
public class ColorPickerPalette : Control, IDisposable
Constructors
ColorPickerPalette()
Creates the instance of ColorPickerPalette control
Declaration
public ColorPickerPalette()
Fields
AutomaticColorProperty
Identifies the AutomaticColor dependency property
Declaration
public static readonly DependencyProperty AutomaticColorProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
AutomaticColorVisibilityProperty
Identifies the AutomaticColorVisibilityProperty dependency property.
Declaration
public static readonly DependencyProperty AutomaticColorVisibilityProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
BlackWhiteVisibilityProperty
Identifies the BlackWhiteVisibility dependency property.
Declaration
public static readonly DependencyProperty BlackWhiteVisibilityProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
BorderHeightProperty
Identifies the BorderHeightProperty dependency property.
Declaration
public static readonly DependencyProperty BorderHeightProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
BorderWidthProperty
Identifies the BorderWidthProperty dependency property.
Declaration
public static readonly DependencyProperty BorderWidthProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
col
Collection having the set of theme colors
Declaration
public ObservableCollection<ColorGroupItem>[] col
Field Value
Type |
---|
System.Collections.ObjectModel.ObservableCollection<ColorGroupItem>[] |
ColorGroupCollection
Collection which fetch and load colors for the corresponding panels
Declaration
public ObservableCollection<ColorGroupItem> ColorGroupCollection
Field Value
Type |
---|
System.Collections.ObjectModel.ObservableCollection<ColorGroupItem> |
ColorNameProperty
Identifies the ColorName dependency property.
Declaration
public static readonly DependencyProperty ColorNameProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
ColorProperty
Identifies the Color dependency property.
Declaration
public static readonly DependencyProperty ColorProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
CustomCol
Collection having the set of Custom colors
Declaration
public ObservableCollection<ColorGroupItem>[] CustomCol
Field Value
Type |
---|
System.Collections.ObjectModel.ObservableCollection<ColorGroupItem>[] |
CustomColorGroupCollection
Collection which fetch and load colors for the corresponding panels
Declaration
public ObservableCollection<ColorGroupItem> CustomColorGroupCollection
Field Value
Type |
---|
System.Collections.ObjectModel.ObservableCollection<ColorGroupItem> |
CustomColorsCollectionProperty
Identifies the CustomColorsCollectionProperty dependency property.
Declaration
public static readonly DependencyProperty CustomColorsCollectionProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
CustomHeaderTextProperty
Identifies the CustomHeaderTextProperty dependency property.
Declaration
public static readonly DependencyProperty CustomHeaderTextProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
CustomHeaderVisibilityProperty
Identifies the CustomColorsCollectionProperty dependency property.
Declaration
public static readonly DependencyProperty CustomHeaderVisibilityProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
GenerateStandardVariantsProperty
Identifies the GenerateStandardVariants dependency property.
Declaration
public static readonly DependencyProperty GenerateStandardVariantsProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
GenerateThemeVariantsProperty
Identifies the GenerateThemeVariants dependency property.
Declaration
public static readonly DependencyProperty GenerateThemeVariantsProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
HeaderTemplateProperty
Declaration
public static readonly DependencyProperty HeaderTemplateProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
IconProperty
Using a DependencyProperty as the backing store for Icon. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty IconProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
IconSizeProperty
Using a DependencyProperty as the backing store for IconSize. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty IconSizeProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
IsCustomTabVisibleProperty
Identifies the IsCustomTabVisible dependency property.
Declaration
public static readonly DependencyProperty IsCustomTabVisibleProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
IsExpandedProperty
Identifies the IsExpanded dependency property.
Declaration
public static readonly DependencyProperty IsExpandedProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
IsStandardTabVisibleProperty
Identifies the IsStandardTabVisible dependency property.
Declaration
public static readonly DependencyProperty IsStandardTabVisibleProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
ModeProperty
Declaration
public static readonly DependencyProperty ModeProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
MoreColorOptionVisibilityProperty
Identifies the MoreColorOptionVisibilityProperty dependency property.
Declaration
public static readonly DependencyProperty MoreColorOptionVisibilityProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
MoreColorsIconProperty
Using a DependencyProperty as the backing store for MoreColorsIcon. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty MoreColorsIconProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
MoreColorsIconSizeProperty
Using a DependencyProperty as the backing store for MoreColorsIcon. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty MoreColorsIconSizeProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
MouseOverBackgroundProperty
Identifies the MouseOverBackground dependency property.
Declaration
public static readonly DependencyProperty MouseOverBackgroundProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
NoColorVisibilityProperty
Identifies the NoColorVisibilityProperty dependency property.
Declaration
public static readonly DependencyProperty NoColorVisibilityProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
PopupHeightProperty
Identifies the PopupHeightProperty dependency property.
Declaration
public static readonly DependencyProperty PopupHeightProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
PopupWidthProperty
Identifies the PopupWidthProperty dependency property.
Declaration
public static readonly DependencyProperty PopupWidthProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
RecentlyUsedCollection
Collection having Recenly Selected Colors
Declaration
public ObservableCollection<ColorGroupItem> RecentlyUsedCollection
Field Value
Type |
---|
System.Collections.ObjectModel.ObservableCollection<ColorGroupItem> |
RecentlyUsedPanelVisibilityProperty
Identifies the RecentlyUsedPanelVisibility dependency property.
Declaration
public static readonly DependencyProperty RecentlyUsedPanelVisibilityProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
SelectedBrushProperty
Identifies the SelectedBrush dependency property.
Declaration
public static readonly DependencyProperty SelectedBrushProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
SelectedCommandProperty
Using a DependencyProperty as the backing store for Command. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty SelectedCommandProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
SetCustomColorsProperty
Identifies the SetCustomColorsProperty dependency property.
Declaration
public static readonly DependencyProperty SetCustomColorsProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
StandardPanelVisibilityProperty
Identifies the StandardPanelVisibility dependency property.
Declaration
public static readonly DependencyProperty StandardPanelVisibilityProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
StdColorCollection
Collection having set of Standard Colors
Declaration
public ObservableCollection<ColorGroupItem> StdColorCollection
Field Value
Type |
---|
System.Collections.ObjectModel.ObservableCollection<ColorGroupItem> |
ThemeHeaderBackGroundProperty
Identifies the ThemeHeaderBackGround dependency property.
Declaration
public static readonly DependencyProperty ThemeHeaderBackGroundProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
ThemeHeaderForeGroundProperty
Identifies the ThemeHeaderForeGround dependency property.
Declaration
public static readonly DependencyProperty ThemeHeaderForeGroundProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
ThemePanelVisibilityProperty
Identifies the ThemePanelVisibility dependency property.
Declaration
public static readonly DependencyProperty ThemePanelVisibilityProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
ThemesProperty
Identifies the Themes dependency property.
Declaration
public static readonly DependencyProperty ThemesProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
Properties
AutomaticColor
Gets or sets the value of the AutomaticColor dependency property.
Declaration
public Brush AutomaticColor { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Media.Brush | Type : Brush |
Remarks
Xaml
<Syncfusion:ColorPickerPalette Name="ColorPickerPalette" AutomaticColor="Colors.Black"/>
C#
ColorPickerPalette ColorPicker=new ColorPickerPalette();
ColorPicker.AutomaticColor=new SolidColorBrush(Colors.Black);
AutomaticColorVisibility
Gets or sets the value of the AutomaticColorVisibility dependency property.
Declaration
public Visibility AutomaticColorVisibility { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Visibility | Type : Visibility |
Remarks
Xaml
<Syncfusion:ColorPickerPalette Name="ColorPickerPalette" AutomaticColorVisibility="Visibility.Visible"/>
C#
ColorPickerPalette ColorPicker=new ColorPickerPalette();
ColorPicker.AutomaticColorVisibility=Visibility.Visible;
BlackWhiteVisibility
Gets or sets the Themes dependency property.
Declaration
public BlackWhiteVisible BlackWhiteVisibility { get; set; }
Property Value
Type | Description |
---|---|
BlackWhiteVisible | Type : BlackWhiteVisible |
BorderHeight
Gets or sets the height of the border.
Declaration
public double BorderHeight { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The height of the border. |
BorderWidth
Gets or sets the width of the border.
Declaration
public double BorderWidth { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The width of the border. |
Color
Gets or sets the value of the Color dependency property
Declaration
public Color Color { get; set; }
Property Value
Type |
---|
System.Windows.Media.Color |
ColorName
Gets or sets the value of the ColorName dependency property.
Declaration
public string ColorName { get; set; }
Property Value
Type |
---|
System.String |
CustomColorsCollection
Gets or sets a value for Custom Color Collection.
Declaration
public ObservableCollection<CustomColor> CustomColorsCollection { get; set; }
Property Value
Type |
---|
System.Collections.ObjectModel.ObservableCollection<CustomColor> |
CustomHeaderText
Gets or sets a value for Custom Header text
Declaration
public string CustomHeaderText { get; set; }
Property Value
Type |
---|
System.String |
CustomHeaderVisibility
Gets or sets the value of the CustomHeaderVisibility dependency property.
Declaration
public Visibility CustomHeaderVisibility { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Visibility | Type : Visibility |
Remarks
Xaml
<Syncfusion:ColorPickerPalette Name="ColorPickerPalette" CustomHeaderVisibility="Visibility.Visible"/>
C#
ColorPickerPalette ColorPicker=new ColorPickerPalette();
ColorPicker.CustomHeaderVisibility=Visibility.Visible;
ExpandedAutomaticBorderPressed
Declaration
public bool ExpandedAutomaticBorderPressed { get; }
Property Value
Type |
---|
System.Boolean |
ExpandedMoreColorsBorderPressed
Get or Set ExpandedMoreColorsBorderPressed
Declaration
public bool ExpandedMoreColorsBorderPressed { get; }
Property Value
Type |
---|
System.Boolean |
GenerateStandardVariants
Gets or sets a value indicating whether the GenerateStandardVariants dependency property.
Declaration
public bool GenerateStandardVariants { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | Type : bool |
Remarks
Xaml
<Syncfusion:ColorPickerPalette Name="ColorPickerPalette" GenerateStandardVariants="true"/>
C#
ColorPickerPalette ColorPicker=new ColorPickerPalette();
ColorPicker.GenerateStandardVariants=true;
GenerateThemeVariants
Gets or sets a value indicating whether the GenerateThemeVariants dependency property.
Declaration
public bool GenerateThemeVariants { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | Type : bool |
Remarks
Xaml
<Syncfusion:ColorPickerPalette Name="ColorPickerPalette" GenerateThemeVariants="true"/>
C#
ColorPickerPalette ColorPicker=new ColorPickerPalette();
ColorPicker.GenerateThemeVariants=true;
HeaderTemplate
Gets or sets the data template for the header.
Declaration
public DataTemplate HeaderTemplate { get; set; }
Property Value
Type |
---|
System.Windows.DataTemplate |
Remarks
ColorPickerPalette is the context of this template.
Icon
Declaration
public ImageSource Icon { get; set; }
Property Value
Type |
---|
System.Windows.Media.ImageSource |
IconSize
Declaration
public Size IconSize { get; set; }
Property Value
Type |
---|
System.Windows.Size |
IsAutomaticBorderPressed
Declaration
public bool IsAutomaticBorderPressed { get; }
Property Value
Type |
---|
System.Boolean |
IsCustomTabVisible
Gets or sets the value of the IsCustomTabVisible dependency property.
Declaration
public Visibility IsCustomTabVisible { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Visibility | Type : Visibility |
Remarks
Xaml
<Syncfusion:ColorPickerPalette Name="ColorPickerPalette" IsCustomTabVisible="Visibility.Visible"/>
C#
ColorPickerPalette ColorPicker=new ColorPickerPalette();
ColorPicker.IsCustomTabVisible=Visibility.Visible;
IsExpanded
Gets or sets a value indicating whether the ColorPickerPalette is in Expanded mode or not.
Declaration
public bool IsExpanded { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
IsMoreColorsBorderPressed
Declaration
public bool IsMoreColorsBorderPressed { get; }
Property Value
Type |
---|
System.Boolean |
IsStandardTabVisible
Gets or sets the value of the IsStandardTabVisible dependency property.
Declaration
public Visibility IsStandardTabVisible { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Visibility | Type : Visibility |
Remarks
Xaml
<Syncfusion:ColorPickerPalette Name="ColorPickerPalette" IsStandardTabVisible="Visibility.Visible"/>
C#
ColorPickerPalette ColorPicker=new ColorPickerPalette();
ColorPicker.IsStandardTabVisible=Visibility.Visible;
Mode
Gets or sets the dropdown mode for the color picker palette.
Declaration
public PickerMode Mode { get; set; }
Property Value
Type |
---|
PickerMode |
Remarks
Default mode is DropDown. In Palette mode, colors arranged as a palette (rows and columns). In DropDown mode, a ComboBox is displayed with the palette in its dropdown popup. In Split mode, a SplitButton is displayed with the palette in its dropdown popup.
MoreColorOptionVisibility
Gets or sets the value of the MoreColorOptionVisibility dependency property.
Declaration
public Visibility MoreColorOptionVisibility { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Visibility | Type : Visibility |
Remarks
Xaml
<Syncfusion:ColorPickerPalette Name="ColorPickerPalette" MoreColorOptionVisibility="Visibility.Visible"/>
C#
ColorPickerPalette ColorPicker=new ColorPickerPalette();
ColorPicker.MoreColorOptionVisibility=Visibility.Visible;
MoreColorsIcon
Declaration
public ImageSource MoreColorsIcon { get; set; }
Property Value
Type |
---|
System.Windows.Media.ImageSource |
MoreColorsIconSize
Declaration
public Size MoreColorsIconSize { get; set; }
Property Value
Type |
---|
System.Windows.Size |
MouseOverBackground
Get or Set MouseOverBackground
Declaration
public Brush MouseOverBackground { get; set; }
Property Value
Type |
---|
System.Windows.Media.Brush |
NoColorVisibility
Gets or sets the visibility of the No color option.
Declaration
public Visibility NoColorVisibility { get; set; }
Property Value
Type |
---|
System.Windows.Visibility |
Remarks
When no color button is clicked, transparent color is selected.
Popup
Declaration
public Popup Popup { get; }
Property Value
Type |
---|
System.Windows.Controls.Primitives.Popup |
PopupHeight
Gets or sets the value of the PopupHeight dependency property
Declaration
public double PopupHeight { get; set; }
Property Value
Type |
---|
System.Double |
PopupWidth
Gets or sets the value of the PopupWidth dependency property
Declaration
public double PopupWidth { get; set; }
Property Value
Type |
---|
System.Double |
RecentlyUsedPanelVisibility
Gets or sets the value of the RecentlyUsedPanelVisibility dependency property.
Declaration
public Visibility RecentlyUsedPanelVisibility { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Visibility | Type : Visibility |
Remarks
Xaml
<Syncfusion:ColorPickerPalette Name="ColorPickerPalette" RecentlyUsedPanelVisibility="Visibility.Visible"/>
C#
ColorPickerPalette ColorPicker=new ColorPickerPalette();
ColorPicker.RecentlyUsedPanelVisibility=Visibility.Visible;
SelectedBrush
Declaration
public Brush SelectedBrush { get; set; }
Property Value
Type |
---|
System.Windows.Media.Brush |
SelectedCommand
Gets or sets a command that will be triggered when a color is selected.
Declaration
public ICommand SelectedCommand { get; set; }
Property Value
Type |
---|
System.Windows.Input.ICommand |
Remarks
In Palette and Picker mode, this command is triggered when a color is changed. In ActionPicker mode, clicking header button will trigger this command.When command is triggered, SelectedCommandArgs will be used as command parameter.
SelectedItem
Gets or sets the value of the SelectedItem dependency property.
Declaration
public ColorGroupItem SelectedItem { get; }
Property Value
Type |
---|
ColorGroupItem |
SetCustomColors
Gets or sets a value indicating whether custom colors is enables or not.
Declaration
public bool SetCustomColors { get; set; }
Property Value
Type |
---|
System.Boolean |
StandardPanelVisibility
Gets or sets the value of the StandardPanelVisibility dependency property.
Declaration
public Visibility StandardPanelVisibility { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Visibility | Type : Visibility |
Remarks
Xaml
<Syncfusion:ColorPickerPalette Name="ColorPickerPalette" StandardPanelVisibility="Visibility.Visible"/>
C#
ColorPickerPalette ColorPicker=new ColorPickerPalette();
ColorPicker.StandardPanelVisibility=Visibility.Visible;
ThemeHeaderBackGround
Gets or sets the value of the ThemeBackGround dependency property.
Declaration
public Brush ThemeHeaderBackGround { get; set; }
Property Value
Type |
---|
System.Windows.Media.Brush |
ThemeHeaderForeGround
Gets or sets the value of the ThemeForeGround dependency property.
Declaration
public Brush ThemeHeaderForeGround { get; set; }
Property Value
Type |
---|
System.Windows.Media.Brush |
ThemePanelVisibility
Gets or sets the value of the ThemePanelVisibility dependency property.
Declaration
public Visibility ThemePanelVisibility { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Visibility | Type : Visibility |
Remarks
Xaml
<Syncfusion:ColorPickerPalette Name="ColorPickerPalette" ThemePanelVisibility="Visibility.Visible"/>
C#
ColorPickerPalette ColorPicker=new ColorPickerPalette();
ColorPicker.ThemePanelVisibility=Visibility.Visible;
Themes
Gets or sets the Themes dependency property.
Declaration
public PaletteTheme Themes { get; set; }
Property Value
Type | Description |
---|---|
PaletteTheme | Type : Theme |
Methods
add_DropDownOpened(ColorPickerPalette.DropDownOpenedEventHandler)
Declaration
public void add_DropDownOpened(ColorPickerPalette.DropDownOpenedEventHandler value)
Parameters
Type | Name | Description |
---|---|---|
ColorPickerPalette.DropDownOpenedEventHandler | value |
add_MoreColorWindowOpened(ColorPickerPalette.MoreColorWindowEventHandler)
Declaration
public void add_MoreColorWindowOpened(ColorPickerPalette.MoreColorWindowEventHandler value)
Parameters
Type | Name | Description |
---|---|---|
ColorPickerPalette.MoreColorWindowEventHandler | value |
add_MoreColorWindowOpening(ColorPickerPalette.MoreColorWindowEventHandler)
Declaration
public void add_MoreColorWindowOpening(ColorPickerPalette.MoreColorWindowEventHandler value)
Parameters
Type | Name | Description |
---|---|---|
ColorPickerPalette.MoreColorWindowEventHandler | value |
BlackWhiteVisibilityChanged(DependencyPropertyChangedEventArgs)
Called when BlackWhiteVisibilityChanged is raised
Declaration
protected virtual void BlackWhiteVisibilityChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | Property change details, such as old value and new value |
Dispose()
Disposes all the resources.
Declaration
public void Dispose()
IsAutomaticColorChanged(DependencyPropertyChangedEventArgs)
If automatic color is changed when loaded or when color not changed the color is set to the color of automatic color
Declaration
protected virtual void IsAutomaticColorChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | Property change details, such as old value and new value |
IsColorChanged(DependencyPropertyChangedEventArgs)
When color is changed,its presence is checked in RecentlyUsedCollection.If not present then added.
Declaration
protected virtual void IsColorChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | Property change details, such as old value and new value |
LoadStandardColors(Boolean)
This method loads the Standard color panel
Declaration
public void LoadStandardColors(bool variant)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | variant | Indicates whether to generate Standard variants on not |
LoadThemeColors(Boolean)
This Method loads the Theme Color panel
Declaration
public void LoadThemeColors(bool variant)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | variant | Indicates whether to generate Theme variants on not |
MeasureOverride(Size)
This method get called during measure pass of the layout system.
Declaration
protected override Size MeasureOverride(Size availableSize)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Size | availableSize |
Returns
Type |
---|
System.Windows.Size |
OnApplyTemplate()
Applies the Template for the control
Declaration
public override void OnApplyTemplate()
OnGotFocus(RoutedEventArgs)
Called before the System.Windows.UIElement.GotFocus event occurs.
Declaration
protected override void OnGotFocus(RoutedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.RoutedEventArgs | e | The data for the event. |
OnMoreColorWindowOpened(MoreColorCancelEventArgs)
Declaration
protected virtual void OnMoreColorWindowOpened(MoreColorCancelEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
MoreColorCancelEventArgs | e |
OnMoreColorWindowOpening(MoreColorCancelEventArgs)
Declaration
protected virtual void OnMoreColorWindowOpening(MoreColorCancelEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
MoreColorCancelEventArgs | e |
OnMouseDown(MouseButtonEventArgs)
Called when MouseDown
Declaration
protected override void OnMouseDown(MouseButtonEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.MouseButtonEventArgs | e |
OnMouseWheel(MouseWheelEventArgs)
Handles mouse wheel for ColorPickerPalette
Declaration
protected override void OnMouseWheel(MouseWheelEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.MouseWheelEventArgs | e |
OnPopupHeightChanged(DependencyPropertyChangedEventArgs)
Declaration
protected virtual void OnPopupHeightChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e |
OnPreviewKeyDown(KeyEventArgs)
Invoked when a System.Windows.Input.Keyboard.PreviewKeyDown attached routed event occurs.
Declaration
protected override void OnPreviewKeyDown(KeyEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.KeyEventArgs | e | Provides data for the System.Windows.UIElement.KeyUp and System.Windows.UIElement.KeyDown routed events, as well as related attached and Preview events. |
remove_DropDownOpened(ColorPickerPalette.DropDownOpenedEventHandler)
Declaration
public void remove_DropDownOpened(ColorPickerPalette.DropDownOpenedEventHandler value)
Parameters
Type | Name | Description |
---|---|---|
ColorPickerPalette.DropDownOpenedEventHandler | value |
remove_MoreColorWindowOpened(ColorPickerPalette.MoreColorWindowEventHandler)
Declaration
public void remove_MoreColorWindowOpened(ColorPickerPalette.MoreColorWindowEventHandler value)
Parameters
Type | Name | Description |
---|---|---|
ColorPickerPalette.MoreColorWindowEventHandler | value |
remove_MoreColorWindowOpening(ColorPickerPalette.MoreColorWindowEventHandler)
Declaration
public void remove_MoreColorWindowOpening(ColorPickerPalette.MoreColorWindowEventHandler value)
Parameters
Type | Name | Description |
---|---|---|
ColorPickerPalette.MoreColorWindowEventHandler | value |
StandardVariantsChanged(DependencyPropertyChangedEventArgs)
Called when StandardVariantsChanged event is raised
Declaration
protected virtual void StandardVariantsChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | Property change details, such as old value and new value |
ThemeColorChanged(DependencyPropertyChangedEventArgs)
Called when ThemeColorChanged event is raised
Declaration
protected virtual void ThemeColorChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | Property change details, such as old value and new value |
ThemeVariantsChanged(DependencyPropertyChangedEventArgs)
Called when ThemeVariantsChanged Event is raised
Declaration
protected virtual void ThemeVariantsChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | Property change details, such as old value and new value |
ThemeVisibilityChanged(DependencyPropertyChangedEventArgs)
Called when ThemeVisibilityChanged event is raised
Declaration
protected virtual void ThemeVisibilityChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | Property change details, such as old value and new value |
Events
ColorChanged
Event is raised when user changes the color
Declaration
public event PropertyChangedCallback ColorChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
DropDownOpened
Declaration
public event ColorPickerPalette.DropDownOpenedEventHandler DropDownOpened
Event Type
Type |
---|
ColorPickerPalette.DropDownOpenedEventHandler |
MoreColorWindowOpened
Declaration
public event ColorPickerPalette.MoreColorWindowEventHandler MoreColorWindowOpened
Event Type
Type |
---|
ColorPickerPalette.MoreColorWindowEventHandler |
MoreColorWindowOpening
Declaration
public event ColorPickerPalette.MoreColorWindowEventHandler MoreColorWindowOpening
Event Type
Type |
---|
ColorPickerPalette.MoreColorWindowEventHandler |
PopupHeightChanged
Declaration
public event PropertyChangedCallback PopupHeightChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
SelectedBrushChanged
Occurs when the SelectedBrush is changed.
Declaration
public event EventHandler<SelectedBrushChangedEventArgs> SelectedBrushChanged
Event Type
Type |
---|
System.EventHandler<SelectedBrushChangedEventArgs> |