/// <summary> /// Shows the color picker window and sets the initial color to show. /// </summary> /// <param name="color">Initial color to display.</param> /// <param name="hdr">If true, the color intensity can be selected along with the color itself.</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, bool hdr = false, Action <bool, Color> closedCallback = null) { ColorPicker picker = new ColorPicker(color, hdr, closedCallback); return(picker); }