Material.Avalonia icon indicating copy to clipboard operation
Material.Avalonia copied to clipboard

Floating hint in default ComboBox style

Open Tenjim opened this issue 3 years ago • 7 comments

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.

Tenjim avatar Dec 08 '21 10:12 Tenjim

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?

SKProCH avatar Dec 08 '21 16:12 SKProCH

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 :

ComboBoxHint

It's the same behavior in your demo do with TextBox and TextFieldAssist.

Tenjim avatar Dec 08 '21 17:12 Tenjim

Hmm, @Tenjim

You can use PlaceholderText or ComboBoxAssist.Label to set hint what will look like this: Animation

Is that one what you needed?

SKProCH avatar Dec 09 '21 17:12 SKProCH

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) : image

Is there an easy way to have this ? Thanks :)

Whiletru3 avatar Dec 10 '21 08:12 Whiletru3

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.

SKProCH avatar Dec 10 '21 09:12 SKProCH

Hi, any update on this? We are just starting with Avalonia and need a filled ComboBox with a floating label.

Stensan avatar Oct 16 '23 06:10 Stensan

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.

SKProCH avatar Oct 16 '23 11:10 SKProCH