/// <summary> /// Shows the color picker window and sets the initial color to show. /// </summary> /// <param name="color">Initial color to display.</param> /// <param name="closedCallback">Optional callback to trigger when the user selects a color or cancels out /// of the dialog.</param> /// <returns>A. instance of the color picker window.</returns> public static ColorPicker Show(Color color, Action<bool, Color> closedCallback = null) { ColorPicker picker = new ColorPicker(color, closedCallback); return picker; }
/// <summary> /// Triggered by the runtime when the user clicks on the color field. /// </summary> private void Internal_DoOnClicked() { ColorPicker.Show(Value, ColorPickerClosed); }