AvaloniaColorPicker icon indicating copy to clipboard operation
AvaloniaColorPicker copied to clipboard

How can I configure the ColorButton opened window?

Open robbelroot opened this issue 2 years ago • 1 comments

I want to show a color dialog with the ColorButton control, which is pretty easy, but I can't configure the shown window this way. Is there a way?

Currently, I did that by binding a command in my UI which creates a and shows a new ColorPickerWindow instance - is this the recommended way?

robbelroot avatar Sep 07 '23 23:09 robbelroot

Hi, I think this is more or less the same as #14 . Basically, see https://github.com/arklumpus/AvaloniaColorPicker/wiki/Customising-the-colour-picker-window ; you need to create a Window that implements the IColorPickerWindow interface, and then use a ColorButton<T> instead of a ColorButton.

arklumpus avatar Sep 08 '23 11:09 arklumpus