Class SfColorPalette
Represents a control that provides a set of colors in different Syncfusion.UI.Xaml.Controls.Media.ColorSwatches swatches.
Inheritance
Namespace: Syncfusion.Windows.Controls.Media
Assembly: Syncfusion.SfColorPalette.Wpf.dll
Syntax
public class SfColorPalette : Control
Constructors
SfColorPalette()
Initializes a new instance of the SfColorPalette class.
Declaration
public SfColorPalette()
Fields
SelectedColorProperty
Using a DependencyProperty as the backing store for SelectedColor. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty SelectedColorProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
Properties
CanGoBack
Gets or sets a value indicating whether the control can navigate back.
Declaration
public bool CanGoBack { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
SelectedColor
Gets a color from the Syncfusion.UI.Xaml.Controls.Media.SfColorPalette control that has been selected.
Declaration
public Color SelectedColor { get; }
Property Value
Type |
---|
System.Windows.Media.Color |
Remarks
The color can be selected from the Syncfusion.UI.Xaml.Controls.Media.ColorSwatches
Methods
GoBack()
Returns the focus to the color palette from the Swatches
Declaration
public void GoBack()
OnApplyTemplate()
Initializes all the child elements of the Syncfusion.UI.Xaml.Controls.Media.SfColorPalette control.
Declaration
public override void OnApplyTemplate()
OnGotFocus(RoutedEventArgs)
Invoked when the ColorPalette gets the focus
Declaration
protected override void OnGotFocus(RoutedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.RoutedEventArgs | e | Routed Event |
OnLostFocus(RoutedEventArgs)
Invoked when the focus is gone to another control
Declaration
protected override void OnLostFocus(RoutedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.RoutedEventArgs | e | Routed Event |
Events
SelectedColorChanged
Invoke an event when the Syncfusion.UI.Xaml.Controls.Media.SfColorPalette control's selected color has changed.
Declaration
public event DependencyPropertyChangedEventHandler SelectedColorChanged
Event Type
Type |
---|
System.Windows.DependencyPropertyChangedEventHandler |