Class SfColorPalette
Represents a control that provides a set of colors in different ColorSwatches swatches.
Inheritance
Implements
Namespace: Syncfusion.UI.Xaml.Controls.Media
Assembly: Syncfusion.SfColorPickers.UWP.dll
Syntax
public class SfColorPalette : Control, IDisposable
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 |
---|
Windows.UI.Xaml.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 SfColorPalette control that has been selected.
Declaration
public Color SelectedColor { get; }
Property Value
Type |
---|
Windows.UI.Color |
Remarks
The color can be selected from the ColorSwatches
Methods
Dispose()
Called when control unloaded
Declaration
public void Dispose()
Dispose(Boolean)
Called when control unloaded
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing | Indicates whether the control is disposed |
GoBack()
Returns the focus to the color palette from the Swatches
Declaration
public void GoBack()
OnApplyTemplate()
Initializes all the child elements of the SfColorPalette control.
Declaration
protected override void OnApplyTemplate()
OnGotFocus(RoutedEventArgs)
Invoked when the ColorPalette gets the focus
Declaration
protected override void OnGotFocus(RoutedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.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 |
---|---|---|
Windows.UI.Xaml.RoutedEventArgs | e | Routed Event |
Events
SelectedColorChanged
Invoke an event when the SfColorPalette control's selected color has changed.
Declaration
public event DependencyPropertyChangedEventHandler SelectedColorChanged
Event Type
Type |
---|
Windows.UI.Xaml.DependencyPropertyChangedEventHandler |