is it possible to send some custom color list (with my default color) to Eto ColorPicker, like in Rhino.UI.Dialogs.ShowColorDialog? Or add additional action which would call method to set to default color here?:
@curtisw could you help here? Could I extend/inherit-override something to achieve this goal? Any suggestion for direction which I could follow would be appreciated.
var oldColor = System.Drawing.Color.CornflowerBlue;
var color4f = new Rhino.Display.Color4f(oldColor);
var allowAlpha = true;
var rc = Rhino.UI.Dialogs.ShowColorDialog(ref color4f, allowAlpha);
if (rc)
{
var newColor = color4f.AsSystemColor();
RhinoApp.WriteLine(newColor.ToString());
}
Thank you @dale for answer. It is possible to run this Dialogs.ShowColorDialog instead of default ColorPicker dialog (which is same dialog but without possibility to use my color list)? When I use OnMouseDown it overrides behaviour over whole control area, including right side of it - turning it into a simple button which makes no sense.
I could do it also with Button object having dynamically changing background color, but I have troubles with binding Button background color to my ViewModel property.
I would like to trigger this dialog by control in panel which would have background color of currently used color. To achieve this I was thinking about using Eto ColorPicker or Eto Button. Do you think this is possible?