ColorSpectrum ColorSpectrum ColorSpectrum Class

Definition

Some information relates to pre-released product which may be substantially modified before it’s commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Prerelease APIs are identified by a Prerelease label.

Prerelease. Represents a control that lets a user choose a color from a visual spectrum.

public : class ColorSpectrum : Control, IColorSpectrumpublic class ColorSpectrum : Control, IColorSpectrumPublic Class ColorSpectrum Inherits Control Implements IColorSpectrum
Inheritance
Attributes
Windows 10 requirements
Device family
Windows 10 Insider Preview (introduced v10.0.16190.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)

Inherited Members

Inherited properties

Inherited events

Inherited methods

Remarks

ColorSpectrum is a component of the ColorPicker control. Use ColorPicker for a complete color picking experience.

Constructors

ColorSpectrum() ColorSpectrum() ColorSpectrum()

Prerelease. Initializes a new instance of the ColorSpectrum class.

public : ColorSpectrum()public ColorSpectrum()Public Sub New()

Properties

Alpha Alpha Alpha

Prerelease. Gets or sets the value of the alpha color channel.

public : double Alpha { get; set; }public double Alpha { get; set; }Public ReadWrite Property Alpha As double
Value
double double double

The value of the alpha color channel.

AlphaProperty AlphaProperty AlphaProperty

Prerelease. Identifies the Alpha dependency property.

public : static DependencyProperty AlphaProperty { get; }public static DependencyProperty AlphaProperty { get; }Public Static ReadOnly Property AlphaProperty As DependencyProperty
Value
DependencyProperty DependencyProperty DependencyProperty

The identifier for the Alpha dependency property.

Color Color Color

Prerelease. Gets or sets the current color value.

public : Color Color { get; set; }public Color Color { get; set; }Public ReadWrite Property Color As Color
Value
Color Color Color

The current color value.

ColorProperty ColorProperty ColorProperty

Prerelease. Identifies the Color dependency property.

public : static DependencyProperty ColorProperty { get; }public static DependencyProperty ColorProperty { get; }Public Static ReadOnly Property ColorProperty As DependencyProperty
Value
DependencyProperty DependencyProperty DependencyProperty

The identifier for the Color dependency property.

Components Components Components

Prerelease. Gets or sets a value that indicates how the Hue-Saturation-Value (HSV) color components are mapped onto the ColorSpectrum.

public : ColorSpectrumComponents Components { get; set; }public ColorSpectrumComponents Components { get; set; }Public ReadWrite Property Components As ColorSpectrumComponents
Value
ColorSpectrumComponents ColorSpectrumComponents ColorSpectrumComponents

A value of the enumeration. The default is HueSaturation.

ComponentsProperty ComponentsProperty ComponentsProperty

Prerelease. Identifies the Components dependency property.

public : static DependencyProperty ComponentsProperty { get; }public static DependencyProperty ComponentsProperty { get; }Public Static ReadOnly Property ComponentsProperty As DependencyProperty
Value
DependencyProperty DependencyProperty DependencyProperty

The identifier for the Components dependency property.

HsvColor HsvColor HsvColor

Prerelease. Gets or sets the current color value as an HsvColor.

public : HsvColor HsvColor { get; set; }public HsvColor HsvColor { get; set; }Public ReadWrite Property HsvColor As HsvColor
Value
HsvColor HsvColor HsvColor

The current HSV color value.

HsvColorProperty HsvColorProperty HsvColorProperty

Prerelease. Identifies the HsvColor dependency property.

public : static DependencyProperty HsvColorProperty { get; }public static DependencyProperty HsvColorProperty { get; }Public Static ReadOnly Property HsvColorProperty As DependencyProperty
Value
DependencyProperty DependencyProperty DependencyProperty

The identifier for the HsvColor dependency property.

MaxHue MaxHue MaxHue

Prerelease. Gets or sets the maximum Hue value in the range 0-359.

public : int MaxHue { get; set; }public int MaxHue { get; set; }Public ReadWrite Property MaxHue As int
Value
int int int

The maximum Hue value in the range 0-359. The default is 359.

Remarks

The valid range for Hue values is 0-359. Setting a value outside of this range will cause an exception.

MaxHueProperty MaxHueProperty MaxHueProperty

Prerelease. Identifies the MaxHue dependency property.

public : static DependencyProperty MaxHueProperty { get; }public static DependencyProperty MaxHueProperty { get; }Public Static ReadOnly Property MaxHueProperty As DependencyProperty
Value
DependencyProperty DependencyProperty DependencyProperty

The identifier for the MaxHue dependency property.

MaxSaturation MaxSaturation MaxSaturation

Prerelease. Gets or sets the maximum Saturation value in the range 0-100.

public : int MaxSaturation { get; set; }public int MaxSaturation { get; set; }Public ReadWrite Property MaxSaturation As int
Value
int int int

The maximum Saturation value in the range 0-100. The default is 100.

Remarks

The valid range for Saturation values is 0-100. Setting a value outside of this range will cause an exception.

MaxSaturationProperty MaxSaturationProperty MaxSaturationProperty

Prerelease. Identifies the MaxSaturation dependency property.

public : static DependencyProperty MaxSaturationProperty { get; }public static DependencyProperty MaxSaturationProperty { get; }Public Static ReadOnly Property MaxSaturationProperty As DependencyProperty
Value
DependencyProperty DependencyProperty DependencyProperty

The identifier for the MaxSaturation dependency property.

MaxValue MaxValue MaxValue

Prerelease. Gets or sets the maximum Value value in the range 0-100.

public : int MaxValue { get; set; }public int MaxValue { get; set; }Public ReadWrite Property MaxValue As int
Value
int int int

The maximum Value value in the range 0-100. The default is 100.

Remarks

The valid range for Value values is 0-100. Setting a value outside of this range will cause an exception.

MaxValueProperty MaxValueProperty MaxValueProperty

Prerelease. Identifies the MaxValue dependency property.

public : static DependencyProperty MaxValueProperty { get; }public static DependencyProperty MaxValueProperty { get; }Public Static ReadOnly Property MaxValueProperty As DependencyProperty
Value
DependencyProperty DependencyProperty DependencyProperty

The identifier for the MaxValue dependency property.

MinHue MinHue MinHue

Prerelease. Gets or sets the minimum Hue value in the range 0-359.

public : int MinHue { get; set; }public int MinHue { get; set; }Public ReadWrite Property MinHue As int
Value
int int int

The minimum Hue value in the range 0-359. The default is 0.

Remarks

The valid range for Hue values is 0-359. Setting a value outside of this range will cause an exception.

MinHueProperty MinHueProperty MinHueProperty

Prerelease. Identifies the MinHue dependency property.

public : static DependencyProperty MinHueProperty { get; }public static DependencyProperty MinHueProperty { get; }Public Static ReadOnly Property MinHueProperty As DependencyProperty
Value
DependencyProperty DependencyProperty DependencyProperty

The identifier for the MinHue dependency property.

MinSaturation MinSaturation MinSaturation

Prerelease. Gets or sets the minimum Saturation value in the range 0-100.

public : int MinSaturation { get; set; }public int MinSaturation { get; set; }Public ReadWrite Property MinSaturation As int
Value
int int int

The minimum Saturation value in the range 0-100. The default is 100.

Remarks

The valid range for Saturation values is 0-100. Setting a value outside of this range will cause an exception.

MinSaturationProperty MinSaturationProperty MinSaturationProperty

Prerelease. Identifies the MinSaturation dependency property.

public : static DependencyProperty MinSaturationProperty { get; }public static DependencyProperty MinSaturationProperty { get; }Public Static ReadOnly Property MinSaturationProperty As DependencyProperty
Value
DependencyProperty DependencyProperty DependencyProperty

The identifier for the MinSaturation dependency property.

MinValue MinValue MinValue

Prerelease. Gets or sets the minimum Value value in the range 0-100.

public : int MinValue { get; set; }public int MinValue { get; set; }Public ReadWrite Property MinValue As int
Value
int int int

The minimum Value value in the range 0-100. The default is 100.

Remarks

The valid range for Value values is 0-100. Setting a value outside of this range will cause an exception.

MinValueProperty MinValueProperty MinValueProperty

Prerelease. Identifies the MinValue dependency property.

public : static DependencyProperty MinValueProperty { get; }public static DependencyProperty MinValueProperty { get; }Public Static ReadOnly Property MinValueProperty As DependencyProperty
Value
DependencyProperty DependencyProperty DependencyProperty

The identifier for the MinValue dependency property.

Shape Shape Shape

Prerelease. Gets or sets a value that indicates whether the ColorSpectrum is shown as a square or a circle.

public : ColorSpectrumShape Shape { get; set; }public ColorSpectrumShape Shape { get; set; }Public ReadWrite Property Shape As ColorSpectrumShape
Value
ColorSpectrumShape ColorSpectrumShape ColorSpectrumShape

A value of the enumeration. The default is Box, which shows the spectrum as a square.

ShapeProperty ShapeProperty ShapeProperty

Prerelease. Identifies the Shape dependency property.

public : static DependencyProperty ShapeProperty { get; }public static DependencyProperty ShapeProperty { get; }Public Static ReadOnly Property ShapeProperty As DependencyProperty
Value
DependencyProperty DependencyProperty DependencyProperty

The identifier for the Shape dependency property.

Events

ColorChanged ColorChanged ColorChanged

Prerelease. Occurs when the Color property has changed.

public : event TypedEventHandler ColorChangedpublic event TypedEventHandler ColorChangedPublic Event ColorChanged