Class SfColorPicker
Represents a control for enabling the user to select colors from a selection box or slider SfColorPicker
Inheritance
Implements
Namespace: Syncfusion.UI.Xaml.Controls.Media
Assembly: Syncfusion.SfColorPickers.UWP.dll
Syntax
public class SfColorPicker : Control, IDisposable
Constructors
SfColorPicker()
Initializes a new instance of the SfColorPicker class.
Declaration
public SfColorPicker()
See Also
Fields
PreviousColorProperty
Using a DependencyProperty as the backing store for MyProperty. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty PreviousColorProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
SelectedColorProperty
Using a DependencyProperty as the backing store for MyProperty. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty SelectedColorProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
Properties
PreviousColor
Gets or sets the previous color that has been selected from the SfColorPicker control.
Declaration
public Color PreviousColor { get; set; }
Property Value
Type |
---|
Windows.UI.Color |
SelectedColor
Gets or sets a color from the SfColorPicker control that has been selected.
Declaration
public Color SelectedColor { get; set; }
Property Value
Type |
---|
Windows.UI.Color |
Remarks
The color can be selected from the ColorSelectionBox ColorSlider
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 |
OnApplyTemplate()
Initializes all the child elements of the SfColorPicker control.
Declaration
protected override void OnApplyTemplate()
Events
SelectedColorChanged
Invokes an event when the SfColorPicker control's selected color has changed.
Declaration
public event DependencyPropertyChangedEventHandler SelectedColorChanged
Event Type
Type |
---|
Windows.UI.Xaml.DependencyPropertyChangedEventHandler |