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

No outline theme for AutoCompleteBox (working code provided)

Open buzzware opened this issue 1 year ago • 2 comments

Usage Information

3.5.0 / 11.0.10 / Desktop (Mac)

Description

There is no outline theme for AutoCompleteBox

Reproduction Steps

There is no theme defined in https://github.com/AvaloniaCommunity/Material.Avalonia/blob/master/Material.Styles/Resources/Themes/AutoCompleteBox.axaml

Expected Behavior

An outline theme to exist for AutoCompleteBox. I find the default Material underline style unsatisfactory.

Actual Behavior

It doesn't exist

Regression?

no

Known Workarounds

none known

Anything else?

I have created a repository https://github.com/buzzware/AutoCompleteBoxPlay demonstrating my own attempt at an outline theme by smooshing together the ComboBox outline and default AutoCompleteBox themes, but I have very little experience with WPF or Avalonia, and I have spent too much time already getting this to work well enough for my project.

I hope someone more familiar and experienced with best practices to implement it properly.

Could you help with a pull-request?

No

Is there an existing issue for this?

  • [X] I have searched the existing issues

buzzware avatar Apr 17 '24 13:04 buzzware

Should be covered with #327 when it will be done. (idk how long it takes)

SKProCH avatar Apr 17 '24 15:04 SKProCH

Also, you can probably try to change the theme for PART_TextBox in AutoCompleteBox.axaml and copy the styles to your own project.

SKProCH avatar Apr 18 '24 18:04 SKProCH