How to set the default ColorPicker type when opening the dropdown? #19301
|
Hello, I've been exploring the Avalonia ColorPicker and ran into some issues with disabling the ColorSpectrum. How do I make the ColorPicker default to the ColorPalette tab instead of the ColorSpectrum tab when IsColorSpectrumVisible is False? Currently when I set IsColorSpectrumVisible="False", the spectrum tab still shows up first when I open the picker. I want the ColorPalette tab to be selected by default instead. I want to use both the ColorPalette and ColorComponents within the ColorPicker, so that is why I'm not using the individual specifically. |
Answered by
TruePadawan
Mar 1, 2026
Replies: 2 comments 7 replies
|
I would also like an answer to this |
1 reply
|
Iirc ColorPicker has SelectedIndex property where this can be set. https://api-docs.avaloniaui.net/docs/P_Avalonia_Controls_ColorView_SelectedIndex |
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Thanks, hacky indeed.
Fortunately I could make do with something much simpler