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

GroupName causes the selected ToggleButton to no longer trigger the click event #1196

Closed
tp1415926535 opened this issue Apr 8, 2024 · 2 comments
Assignees
Labels
Milestone

Comments

@tp1415926535
Copy link

tp1415926535 commented Apr 8, 2024

I'm working on a drawing board tool that requires single selection menus and supports repeat selection tools.
But I realized that after set GroupName to Fluent:ToggleButton, both Click and Command no longer trigger when it checked .


Environment

  • Fluent.Ribbon v10.1.0
  • Windows 10
  • .NET Framework 4.7.2/.Net6.0
@batzen
Copy link
Member

batzen commented Apr 8, 2024

That's by design as it would cause no button in the group to be selected anymore see #481.
It exactly the same behavior you get from a RadioButton.
The real issue here is that the base ToggleButton class has an OnToggle which can't be overridden because it's protected internal.

@batzen
Copy link
Member

batzen commented Apr 8, 2024

Ah. I could just manually raise the event and call the command.

@batzen batzen self-assigned this Apr 8, 2024
@batzen batzen added the Bug 🐞 label Apr 8, 2024
@batzen batzen added this to the 11.0 milestone Apr 8, 2024
@batzen batzen closed this as completed in 65556b6 Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants