Displays the operating system's color picker.
HasAlpha As Boolean
If True, the color selected will be returned with an alpha channel.
The default value is True.
IsVisible As Boolean
If True, the Color Picker is visible.
The default value is False.
Closes the DesktopColorPicker window.
Handle As Ptr
Displays the operating system's color picker using the color, prompt, location and size passed.
On macOS, once your app displays the Color Picker, the OS will continue to show it at that size regardless of what you pass as the width and height.
The Prompt, Left, Top, Width and Height parameters are only supported on macOS.
The color picker has been closed.
ColorSelected(selectedColor As Color)
The user selected the color passed.
On Windows and Linux, the operating system's color picker window is modal. On macOS, the color picker is not modal. This means that on macOS, the ColorSelected event will fire every time the user clicks on a color.
On macOS, if the Color Picker was left open when the user quit your app, it will be automatically closed upon relaunch.
Desktop projects on all supported operating systems.