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, DUCE.IResource, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IHaveResources, IQueryAmbient
Inheritance:
Object DispatcherObject DependencyObject Visual UIElement FrameworkElement Control PickerBase Object

Constructors

HsbColorPicker()

Initializes an instance of the HsbColorPicker class.

public HsbColorPicker()

Properties

A

Gets or sets the alpha transparency component (0 - 255) of the color.

public int A { get; set; }

Property Value

Int32:

The alpha transparency component of the color.

Brightness

Gets or sets the HSB brightness component (0 - 1.0) of the color.

public double Brightness { get; set; }

Property Value

Double:

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

ComparisonValue

Gets or sets the comparison color.

public Color ComparisonValue { get; set; }

Property Value

Color:

The comparison color.

Hue

Gets or sets the HSB hue component (0 - 359.00) of the color.

public double Hue { get; set; }

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.

public bool IsComparisonValueVisible { get; set; }

Property Value

Boolean:

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

Saturation

Gets or sets the HSB saturation component (0 - 1.0) of the color.

public double Saturation { get; set; }

Property Value

Double:

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

Methods

OnApplyTemplate()

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

Identifies the A dependency property. This field is read-only.

public static readonly DependencyProperty AProperty

BrightnessProperty

Identifies the Brightness dependency property. This field is read-only.

public static readonly DependencyProperty BrightnessProperty

ComparisonValueProperty

Identifies the ComparisonValue dependency property. This field is read-only.

public static readonly DependencyProperty ComparisonValueProperty

HueProperty

Identifies the Hue dependency property. This field is read-only.

public static readonly DependencyProperty HueProperty

IsComparisonValueVisibleProperty

Identifies the IsComparisonValueVisible dependency property. This field is read-only.

public static readonly DependencyProperty IsComparisonValueVisibleProperty

SaturationProperty

Identifies the Saturation dependency property. This field is read-only.

public static readonly DependencyProperty SaturationProperty

Inherited Members

Extension Methods