ColorSpectrumComponents Enum

Definition

Defines constants that specify how the Hue-Saturation-Value (HSV) color components are mapped onto the ColorSpectrum.

public enum class ColorSpectrumComponents
/// [Microsoft.UI.Xaml.CustomAttributes.MUXContractProperty(version=5)]
/// [Windows.Foundation.Metadata.Version(1)]
enum class ColorSpectrumComponents
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.UI.Xaml.XamlContract, 65536)]
enum class ColorSpectrumComponents
[Microsoft.UI.Xaml.CustomAttributes.MUXContractProperty(version=5)]
[Windows.Foundation.Metadata.Version(1)]
public enum ColorSpectrumComponents
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.XamlContract), 65536)]
public enum ColorSpectrumComponents
Public Enum ColorSpectrumComponents
Inheritance
ColorSpectrumComponents
Attributes
Microsoft.UI.Xaml.CustomAttributes.MUXContractPropertyAttribute VersionAttribute ContractVersionAttribute

Fields

HueSaturation 2

Hue is mapped to the X axis. Saturation is mapped to the Y axis.

HueValue 0

Hue is mapped to the X axis. Value is mapped to the Y axis.

SaturationHue 3

Saturation is mapped to the X axis. Hue is mapped to the Y axis.

SaturationValue 4

Saturation is mapped to the X axis. Value is mapped to the Y axis.

ValueHue 1

Value is mapped to the X axis. Hue is mapped to the Y axis.

ValueSaturation 5

Value is mapped to the X axis. Saturation is mapped to the Y axis.

Examples

Tip

For more info, design guidance, and code examples, see Color picker.

The WinUI 3 Gallery app includes interactive examples of most WinUI 3 controls, features, and functionality. Get the app from the Microsoft Store or get the source code on GitHub.

Remarks

The order of the two components in each value indicates the X/Y axis when the spectrum is a box, or the degree/radius when the spectrum is a ring.

Applies to

See also