arklumpus / AvaloniaColorPicker

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

`ColorPickerWindow` does not have a minimum size #8

Closed colejohnson66 closed 2 years ago

colejohnson66 commented 2 years ago

See this screenshot:

image

colejohnson66 commented 2 years ago

In addition, if I maximize the window, there's no growth at all into the available space. Maybe a Viewbox or CanResize="False" should be added to the window?

image

arklumpus commented 2 years ago

Hi, thank you for this! I have added CanResize="False" to the ColorPickerWindow.

Note that if you want a more flexible behaviour, you can either create a new Window implementing IColorPickerWindow and put a ColorPicker control inside it (e.g. within a ViewBox, if you want), or create a CustomColorPicker with a completely different layout (which would let you e.g. allow the controls to grow to fill the available space).

Neither of these is the default because with the ViewBox the buttons would become too small to click on them, and with the dynamic layout things can get messy very quickly if you're not careful.