microsoft / microsoft/microsoft-ui-xaml

StackPanelPage Error when RadioButton_Checked is called

Open
#10,347 10 comments 0 reactions 0 assignees View on GitHub
area-RadioButtons
Dominant language
C++
Stars
8.4k
Forks
942
Avg merge
2d 7h
Merged PRs (30d)
105

Description

### Which version of the app?

WinUI 3 Gallery

### Description

There is an error on StackPanelPage.xaml.cs when this is called for the first time:

Original Line 26:

string orientationName = rb.Tag.ToString();

Updated Line:

string orientationName = rb.Content.ToString();

### Screenshots

![Image](https://github.com/user-attachments/assets/5f1ee666-de42-40b0-b1f1-ce03a81c03da)

![Image](https://github.com/user-attachments/assets/cc0d5ef8-8308-4018-a0e4-90d9c6fc9363)

![Image](https://github.com/user-attachments/assets/afba11d4-f6f5-4149-9ffc-097004af9375)

### Windows version

_No response_

### Additional context

_No response_

Contributor guide

Open the contributing guide

Research direction

Open StackPanelPage.xaml.cs and inspect RadioButton_Checked around line 26. Reproduce the first invocation in WinUI 3 Gallery, check the radio button's available values, and verify the handler no longer errors when first called.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
desktop
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.