Represents a color picker control that allows for visual selection of hue, saturation, and brightness.
- Inheritance:
-
object
Visual
UIElement
Framework
Element Control PickerBase object
Constructors
HsbColorPicker()
Initializes an instance of the HsbColorPicker
class.
Properties
A
Gets or sets the alpha transparency component (0 - 255) of the color.
Property Value
- int:
The alpha transparency component of the color.
Brightness
Gets or sets the HSB brightness component (0 - 1.0) of the color.
Property Value
- double:
The HSB brightness component (0 - 1.0) of the color.
ComparisonValue
Gets or sets the comparison color.
Property Value
- Color:
The comparison color.
Hue
Gets or sets the HSB hue component (0 - 359.00) of the color.
Property Value
- double:
The HSB hue component (0 - 359.00) of the color.
IsComparisonValueVisible
Gets or sets a value indicating whether the comparison value is visible.
Property Value
- bool:
true
if the comparison value is visible; otherwisefalse
. The default value isfalse
.
Saturation
Gets or sets the HSB saturation component (0 - 1.0) of the color.
Property Value
- double:
The HSB saturation component (0 - 1.0) of the color.
Methods
OnApplyTemplate()
Invoked whenever application code or internal processes call ApplyTemplate
.
Events
BrightnessChanged
Occurs after the Brightness property value changes.
Event Type
HueChanged
Occurs after the Hue property value changes.
Event Type
SaturationChanged
Occurs after the Saturation property value changes.
Event Type
Fields
AProperty
Identifies the A dependency property. This field is read-only.
BrightnessProperty
Identifies the Brightness dependency property. This field is read-only.
ComparisonValueProperty
Identifies the Comparison
HueProperty
Identifies the Hue dependency property. This field is read-only.
IsComparisonValueVisibleProperty
Identifies the Is
SaturationProperty
Identifies the Saturation dependency property. This field is read-only.