Material.Avalonia
Material.Avalonia copied to clipboard
Floating hint in default ComboBox style
Hi guys,
I wanna to know if you have this behavior referenced on Material Design : Exposed DropDown Menu
On WPF, I'm using Hint with ComboBox and I have this behavior with different menu status.
Do you have any implementations/workarounds about it ?
Thank in advance.
Hello, @Tenjim
I think what this is what you need: https://github.com/AvaloniaCommunity/Material.Avalonia/issues/101#issuecomment-900148274 Does this solve your problem?
Hi @SKProCH ,
Not really. I want to have hint when I don't have any value in the combobox and the behavior that replace hint by combox value selected and finaly put hint above.
Like this :
It's the same behavior in your demo do with TextBox and TextFieldAssist.
Hmm, @Tenjim
You can use PlaceholderText
or ComboBoxAssist.Label
to set hint what will look like this:
Is that one what you needed?
Hi @SKProCH
The ComboBoxAssist is not working in the ComboBox without class.
<ComboBox assist:ComboBoxAssist.Label="ComboBox"> <TextBlock Text="Item 1" /> <TextBlock Text="Item 2" /> <TextBlock Text="Item 3" /> <TextBlock Text="Item 4" /> </ComboBox>
Here is what i expect (in wpf material design) :
Is there an easy way to have this ? Thanks :)
Seems like this currently not available.
You can use Outline
ComboBox style or wait untill i or @appleneko2001 impletent floating hint in regular ComboBoxes. But we don't have much time right now because of work.
Hi, any update on this? We are just starting with Avalonia and need a filled ComboBox with a floating label.
Hello, @Stensan. Currently - no yet. I've trying to find time to finish TextBoxes rework, and after that I hope what i can quickly do ComboBoxes rework.