In This Article

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.

public int A { get; set; }

Property Value

int

Brightness

The HSB brightness component (0 - 1.0) of the color.

public double Brightness { get; set; }

Property Value

double

ComparisonValue

The comparison color.

public Color ComparisonValue { get; set; }

Property Value

Color

Hue

The HSB hue component (0 - 359.00) of the color.

public double Hue { get; set; }

Property Value

double

IsComparisonValueVisible

Indicates whether the comparison value is visible.

public bool IsComparisonValueVisible { get; set; }

Property Value

bool:

true if the comparison value is visible; otherwise false. The default value is false.

Saturation

The HSB saturation component (0 - 1.0) of the color.

public double Saturation { get; set; }

Property Value

double

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.

public event EventHandler? BrightnessChanged

Event Type

EventHandler

HueChanged

Occurs after the Hue property value changes.

public event EventHandler? HueChanged

Event Type

EventHandler

SaturationChanged

Occurs after the Saturation property value changes.

public event EventHandler? SaturationChanged

Event Type

EventHandler

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

Inherited Members

Extension Methods