ColorComponentSlider Class
Represents a color component slider control.
public class ColorComponentSlider : Slider, IOrientedElement
- Implements:
- IOrientedElement
Constructors
ColorComponentSlider()
Initializes an instance of the class.
public ColorComponentSlider()
Properties
ActiveGradientBrush
The active gradient brush to be presented by the slider.
Component
The color component that is modified by the slider.
public ColorComponent Component { get; set; }
Property Value
- ColorComponent:
The default value is Alpha.
DisabledOpacity
The opacity used when the control is disabled.
SelectedColor
The Color that is selected in the slider.
Methods
OnSelectedColorChanged(Color, Color)
Raises the SelectedColorChanged event.
protected virtual void OnSelectedColorChanged(Color oldValue, Color newValue)
| Parameter | Type | Description |
|---|---|---|
| oldValue | Color | The old value. |
| newValue | Color | The new value. |
OnValueChanged(double, double)
protected override void OnValueChanged(double oldValue, double newValue)
| Parameter | Type | Description |
|---|---|---|
| oldValue | double | |
| newValue | double |
Events
SelectedColorChanged
Occurs when the value of the SelectedColor property is changed.
public event RoutedPropertyChangedEventHandler<Color> SelectedColorChanged
Event Type
Fields
ActiveGradientBrushProperty
Defines the ActiveGradientBrush property.
public static readonly DependencyProperty ActiveGradientBrushProperty
ComponentProperty
Defines the Component property.
public static readonly DependencyProperty ComponentProperty
DisabledOpacityProperty
Defines the DisabledOpacity property.
public static readonly DependencyProperty DisabledOpacityProperty
SelectedColorChangedEvent
Defines the SelectedColorChanged event.
public static readonly RoutedEvent SelectedColorChangedEvent
SelectedColorProperty
Defines the SelectedColor property.
public static readonly DependencyProperty SelectedColorProperty