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

ToggleButton status no change

Open qfmee opened this issue 2 years ago • 9 comments

3.0.0-avalonia11-preview5.198-nightly

ToggleButton, there is no change in the status UI after selection!

qfmee avatar Jul 06 '23 09:07 qfmee

Hello, @qfmee

Can you try other control themes for toggle button (FlatToggleButton, OutlineToggleButton)?

SKProCH avatar Jul 06 '23 13:07 SKProCH

I try (FlatToggleButton, OutlineToggleButton) is Same bug!

I added this code to solve the problem: <Style Selector="^:checked /template/ Border#PART_HoverEffect" > <Setter Property="Opacity" Value="{StaticResource ButtonPressedOpacity}" /> </Style>

qfmee avatar Jul 07 '23 03:07 qfmee

Hmm, seems like this is an a tricky solution, cuz its breaking all our styles. I should figure out hot to implement a proper solution.

SKProCH avatar Jul 08 '23 21:07 SKProCH

Hello,

any updates on this issue?

lamah85 avatar Aug 17 '23 08:08 lamah85

Hello, @lamah85

Currently no, since i working to complete https://github.com/AvaloniaCommunity/Material.Avalonia/issues?q=is%3Aopen+is%3Aissue+milestone%3Av3.0.0 to release 3.0.0, but i after 3.0.0 this is a on of high priority issues to fix. Currently you can use qfmee workaround, described above.

SKProCH avatar Aug 17 '23 09:08 SKProCH

Hello @SKProCH ,

thank you for your reply.

Due to the fact that i am not a big fan of workarounds i will just stick to an ordinary checkbox.

lamah85 avatar Aug 18 '23 06:08 lamah85

I'm not sure how to use the workaround above from code (I'm using Avalonia.FuncUI) so it would be very cool if this is back 'on the radar' for a fix.

marklam avatar Nov 22 '23 21:11 marklam

Ok, I'll try to take a look at the weekend.

SKProCH avatar Nov 23 '23 06:11 SKProCH

Thanks for your consideration!

marklam avatar Nov 23 '23 09:11 marklam

The issue is still there (3.5.0)

shuitai avatar Apr 14 '24 08:04 shuitai

Should be fixed by https://github.com/AvaloniaCommunity/Material.Avalonia/pull/375

SKProCH avatar Apr 28 '24 20:04 SKProCH