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

RadioButtons SelectionChanged trigger twice #9917

Open
HO-COOH opened this issue Aug 22, 2024 · 0 comments
Open

RadioButtons SelectionChanged trigger twice #9917

HO-COOH opened this issue Aug 22, 2024 · 0 comments
Labels
area-RadioButtons bug Something isn't working team-Controls Issue for the Controls team

Comments

@HO-COOH
Copy link

HO-COOH commented Aug 22, 2024

Describe the bug

This has been an issue in UWP in #3128 , and someone was even kind enough to make a PR to fix it #3137 , but you guys just closed it because winui2 is no longer developed? And don't even check for it in winui3? So I just wasted another hour stumble upon this issue in WinUI3.

Steps to reproduce the bug

  1. Create a new winui3 project
  2. In MainWindow.xaml use this code
    <RadioButtons SelectionChanged="RadioButtons_SelectionChanged">
        <RadioButton Content="Item1"/>
        <RadioButton Content="Item2"/>
    </RadioButtons>
  1. In the handler code, just add a debug print.
  2. The initial selection will trigger it once as expected. Select another item, this event handler will be triggered twice.

Expected behavior

No response

Screenshots

No response

NuGet package version

WinUI 3 - Windows App SDK 1.5.6: 1.5.240802000

Windows version

Windows 11 (22H2): Build 22621

Additional context

Repro

@HO-COOH HO-COOH added the bug Something isn't working label Aug 22, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-triage Issue needs to be triaged by the area owners label Aug 22, 2024
@codendone codendone added area-RadioButtons team-Controls Issue for the Controls team and removed needs-triage Issue needs to be triaged by the area owners labels Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-RadioButtons bug Something isn't working team-Controls Issue for the Controls team
Projects
None yet
Development

No branches or pull requests

2 participants