Class ColorSlider
Represents a control that enables the user to select values by moving the slider
Inheritance
Implements
Namespace: Syncfusion.UI.Xaml.Controls.Media
Assembly: Syncfusion.SfColorPickers.UWP.dll
Syntax
public class ColorSlider : Control, IDisposable
Remarks
The selected color is highlighted by the Syncfusion.UI.Xaml.Controls.Media.ColorToolTip
Constructors
ColorSlider()
Initializes a new instance of the ColorSlider class.
Declaration
public ColorSlider()
See Also
Fields
ValueProperty
Using a DependencyProperty as the backing store for Value. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty ValueProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
Properties
Value
Gets or sets a value on moving the slider in the ColorSlider control.
Declaration
public double Value { get; set; }
Property Value
Type |
---|
System.Double |
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 the child elements of the ColorSlider control.
Declaration
protected override void OnApplyTemplate()
UpdateSliderPosition(Double)
Updates the position of the thumb based on the value on moving the slider
Declaration
public void UpdateSliderPosition(double value)
Parameters
Type | Name | Description |
---|---|---|
System.Double | value | position value |
UpdateSliderPosition(Color)
Updates the position of the thumb on moving the slider
Declaration
public void UpdateSliderPosition(Color color)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Color | color | color of slider |
Events
ValueChanged
Invokes an event when the ColorSlider value has changed
Declaration
public event PropertyChangedCallback ValueChanged
Event Type
Type |
---|
Windows.UI.Xaml.PropertyChangedCallback |