Gets or sets the data context for a FrameworkElement. Gets or sets the radius for the corners of the control's border. Gets or sets the flyout associated with this element. This is relevant for elements that are involved in a mixed XAML / Microsoft DirectX UI. Gets or sets a property that declares alternate composition and blending modes for the element in its parent layout and window.
Identifies the ColorSpectrumShape dependency property.Įquivalent WinUI 2 API for UWP: Microsoft.UI. (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). Gets or sets a value that indicates whether the ColorSpectrum is shown as a square or a circle.Įquivalent WinUI 2 API for UWP: Microsoft.UI. (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). Identifies the ColorSpectrumComponents dependency property.Įquivalent WinUI 2 API for UWP: Microsoft.UI. (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). Gets or sets a value that indicates how the Hue-Saturation-Value (HSV) color components are mapped onto the ColorSpectrum.Įquivalent WinUI 2 API for UWP: Microsoft.UI. (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). Identifies the Color dependency property.Įquivalent WinUI 2 API for UWP: Microsoft.UI. (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). Gets or sets the RectangleGeometry used to define the outline of the contents of a UIElement.Įquivalent WinUI 2 API for UWP: Microsoft.UI. (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). Gets or sets the uniform spacing between characters, in units of 1/1000 of an em. Affects the rendering position of the element. Gets or sets the center point of the element, which is the point about which rotation or scaling occurs. Gets or sets a value that indicates whether the element can be dragged as data in a drag-and-drop operation. Gets or sets a value that indicates whether the UIElement can be a candidate for scroll anchoring. Gets or sets a value that indicates that rendered content should be cached as a composited bitmap when possible. Gets or sets the border thickness of a control. Gets or sets a brush that describes the border fill of a control. This property is useful for Uniform Resource Identifier (URI) resolution at run time. Gets a Uniform Resource Identifier (URI) that represents the base Uniform Resource Identifier (URI) for an XAML-constructed object at XAML load time. Gets or sets a value that indicates how far the background extends in relation to this element's border. Gets or sets a brush that provides the background of the control. Gets or sets whether a disabled control can receive focus. Gets or sets a value that indicates whether the element automatically gets focus when the user interacts with it. Gets or sets a value that determines whether this UIElement can be a drop target for purposes of drag-and-drop operations. Gets the rendered width of a FrameworkElement.
Gets the UI theme that is currently used by the element, which might be different than the RequestedTheme. Gets the size that this UIElement computed during the arrange pass of the layout process. Gets the position of this UIElement, relative to its parent, computed during the arrange pass of the layout process.
Gets the rendered height of a FrameworkElement. Gets or sets a source element that provides the access key scope for this element, even if it's not in the visual tree of the source element. Gets or sets the access key (mnemonic) for this element. Initializes a new instance of the ColorPicker class.Įquivalent WinUI 2 API for UWP: Microsoft.UI.#ctor (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). By default, it lets a user navigate through colors on a color spectrum, or specify a color in either Red-Green-Blue (RGB), Hue-Saturation-Value (HSV), or Hexadecimal textboxes.įor more info about the ColorPicker control, see Color picker. RemarksĪ color picker is used to browse through and select colors.
Get the app from the Microsoft Store or get the source code on GitHub. The WinUI 2 Gallery app includes interactive examples of most WinUI 2 controls, features, and functionality. Open the WinUI 2 Gallery app and see the ColorPicker in action Public class ColorPicker : Control function ColorPicker() Public Class ColorPicker / Ĭlass ColorPicker : Control /// Ĭlass ColorPicker : Control Represents a control that lets a user pick a color using a color spectrum, sliders, and text input.Įquivalent WinUI 2 API for UWP: Microsoft.UI. (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).