Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ToggleButton status no change #259

Closed
qfmee opened this issue Jul 6, 2023 · 11 comments
Closed

ToggleButton status no change #259

qfmee opened this issue Jul 6, 2023 · 11 comments
Labels
bug Something isn't working

Comments

@qfmee
Copy link

qfmee commented Jul 6, 2023

3.0.0-avalonia11-preview5.198-nightly

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

@SKProCH SKProCH added the bug Something isn't working label Jul 6, 2023
@SKProCH
Copy link
Collaborator

SKProCH commented Jul 6, 2023

Hello, @qfmee

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

@qfmee
Copy link
Author

qfmee commented Jul 7, 2023

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>

@SKProCH
Copy link
Collaborator

SKProCH commented Jul 8, 2023

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.

@lamah85
Copy link

lamah85 commented Aug 17, 2023

Hello,

any updates on this issue?

@SKProCH
Copy link
Collaborator

SKProCH commented Aug 17, 2023

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.

@lamah85
Copy link

lamah85 commented Aug 18, 2023

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.

@marklam
Copy link

marklam commented Nov 22, 2023

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.

@SKProCH
Copy link
Collaborator

SKProCH commented Nov 23, 2023

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

@marklam
Copy link

marklam commented Nov 23, 2023

Thanks for your consideration!

@shuitai
Copy link

shuitai commented Apr 14, 2024

The issue is still there (3.5.0)

SKProCH added a commit that referenced this issue Apr 28, 2024
@SKProCH
Copy link
Collaborator

SKProCH commented Apr 28, 2024

Should be fixed by #375

@SKProCH SKProCH closed this as completed Apr 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants