ColorSpectrum
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.
[Contains prerelease APIs.]
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// You can use this class in JavaScript.
- Inheritance
-
ColorSpectrumColorSpectrumColorSpectrumColorSpectrum
- Attributes
| Device family |
Windows 10 Insider Preview (introduced v10.0.16257.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
Properties
ColorProperty 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// You can use this property in JavaScript.
The identifier for the Color dependency property.
Components 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// You can use this property in JavaScript.
- Value
- ColorSpectrumComponents ColorSpectrumComponents ColorSpectrumComponents ColorSpectrumComponents
A value of the enumeration. The default is HueSaturation.
ComponentsProperty 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// You can use this property in JavaScript.
The identifier for the Components dependency property.
HsvColor HsvColor HsvColor HsvColor
Prerelease. Gets or sets the current color value as a Vector4.
public : Vector4 HsvColor { get; set; }public Vector4 HsvColor { get; set; }Public ReadWrite Property HsvColor As Vector4// You can use this property in JavaScript.
- Value
- Vector4 Vector4 Vector4 Vector4
The current HSV color value.
HsvColorProperty 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// You can use this property in JavaScript.
The identifier for the HsvColor dependency property.
MaxHue 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// You can use this property in JavaScript.
- Value
- int 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 MaxHueProperty
Prerelease. Identifies the MaxHue dependency property.
public : static DependencyProperty MaxHueProperty { get; }public static DependencyProperty MaxHueProperty { get; }Public Static ReadOnly Property MaxHueProperty As DependencyProperty// You can use this property in JavaScript.
The identifier for the MaxHue dependency property.
MaxSaturation 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// You can use this property in JavaScript.
- Value
- int 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 MaxSaturationProperty
Prerelease. Identifies the MaxSaturation dependency property.
public : static DependencyProperty MaxSaturationProperty { get; }public static DependencyProperty MaxSaturationProperty { get; }Public Static ReadOnly Property MaxSaturationProperty As DependencyProperty// You can use this property in JavaScript.
The identifier for the MaxSaturation dependency property.
MaxValue 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// You can use this property in JavaScript.
- Value
- int 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 MaxValueProperty
Prerelease. Identifies the MaxValue dependency property.
public : static DependencyProperty MaxValueProperty { get; }public static DependencyProperty MaxValueProperty { get; }Public Static ReadOnly Property MaxValueProperty As DependencyProperty// You can use this property in JavaScript.
The identifier for the MaxValue dependency property.
MinHue 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// You can use this property in JavaScript.
- Value
- int 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 MinHueProperty
Prerelease. Identifies the MinHue dependency property.
public : static DependencyProperty MinHueProperty { get; }public static DependencyProperty MinHueProperty { get; }Public Static ReadOnly Property MinHueProperty As DependencyProperty// You can use this property in JavaScript.
The identifier for the MinHue dependency property.
MinSaturation 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// You can use this property in JavaScript.
- Value
- int 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 MinSaturationProperty
Prerelease. Identifies the MinSaturation dependency property.
public : static DependencyProperty MinSaturationProperty { get; }public static DependencyProperty MinSaturationProperty { get; }Public Static ReadOnly Property MinSaturationProperty As DependencyProperty// You can use this property in JavaScript.
The identifier for the MinSaturation dependency property.
MinValue 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// You can use this property in JavaScript.
- Value
- int 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 MinValueProperty
Prerelease. Identifies the MinValue dependency property.
public : static DependencyProperty MinValueProperty { get; }public static DependencyProperty MinValueProperty { get; }Public Static ReadOnly Property MinValueProperty As DependencyProperty// You can use this property in JavaScript.
The identifier for the MinValue dependency property.
Shape 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// You can use this property in JavaScript.
A value of the enumeration. The default is Box, which shows the spectrum as a square.
ShapeProperty 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// You can use this property in JavaScript.
The identifier for the Shape dependency property.
Events
ColorChanged ColorChanged ColorChanged ColorChanged
Prerelease. Occurs when the Color property has changed.
public : event TypedEventHandler ColorChanged<ColorSpectrum, ColorChangedEventArgs>public event TypedEventHandler ColorChanged<ColorSpectrum, ColorChangedEventArgs>Public Event ColorChanged<ColorSpectrum, ColorChangedEventArgs>// You can use this event in JavaScript.