arklumpus / AvaloniaColorPicker

A color picker for Avalonia
GNU Lesser General Public License v3.0
79 stars 6 forks source link

How can I configure the ColorButton opened window? #13

Open robbelroot opened 1 year ago

robbelroot commented 1 year ago

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?

arklumpus commented 1 year ago

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.