Dela via


ColorPicker.Color Property

Definition

Gets or sets the current color value.

Equivalent WinUI 2 API for UWP: Microsoft.UI.Xaml.Controls.ColorPicker.Color (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

public:
 property Color Color { Color get(); void set(Color value); };
Color Color();

void Color(Color value);
public Color Color { get; set; }
var color = colorPicker.color;
colorPicker.color = color;
Public Property Color As Color
<ColorPicker Color="colorString" .../>

Property Value

The current color value.

Applies to