HsbColorPicker Class
Represents a color picker control that allows for visual selection of hue, saturation, and brightness.
[TemplatePart(Name = "PART_Checkerboard", Type = typeof(Path))]
[TemplatePart(Name = "PART_RadialHuePicker", Type = typeof(RadialHuePicker))]
public class HsbColorPicker : PickerBase
- Inheritance:
- object Visual UIElement FrameworkElement Control PickerBase object
Constructors
HsbColorPicker()
Initializes an instance of the class.
public HsbColorPicker()
Properties
A
The alpha transparency component (0 - 255) of the color.
Brightness
The HSB brightness component (0 - 1.0) of the color.
ComparisonValue
The comparison color.
Hue
The HSB hue component (0 - 359.00) of the color.
IsComparisonValueVisible
Indicates whether the comparison value is visible.
public bool IsComparisonValueVisible { get; set; }
Property Value
- bool:
trueif the comparison value is visible; otherwisefalse. The default value isfalse.
Saturation
The HSB saturation component (0 - 1.0) of the color.
Methods
OnApplyTemplate()
When overridden in a derived class, is invoked whenever application code or internal processes call ApplyTemplate().
public override void OnApplyTemplate()
Events
BrightnessChanged
Occurs after the Brightness property value changes.
HueChanged
Occurs after the Hue property value changes.
SaturationChanged
Occurs after the Saturation property value changes.
Fields
AProperty
Defines the A property.
public static readonly DependencyProperty AProperty
BrightnessProperty
Defines the Brightness property.
public static readonly DependencyProperty BrightnessProperty
ComparisonValueProperty
Defines the ComparisonValue property.
public static readonly DependencyProperty ComparisonValueProperty
HueProperty
Defines the Hue property.
public static readonly DependencyProperty HueProperty
IsComparisonValueVisibleProperty
Defines the IsComparisonValueVisible property.
public static readonly DependencyProperty IsComparisonValueVisibleProperty
SaturationProperty
Defines the Saturation property.
public static readonly DependencyProperty SaturationProperty