[Windows] System.ArgumentException thrown when setting FlyoutLayoutBehavior dynamically
- Dominant language
- C#
- Stars
- 23.3k
- Forks
- 2k
- Avg merge
- 1d 15h
- Merged PRs (30d)
- 290
Description
### Description
When dynamically setting the FlyoutLayoutBehavior of a FlyoutPage on Windows to Popover or SplitOnPortrait, the app throws a System.ArgumentException
| Expected Output | Actual Output |
|-----------------|---------------|
| | |
### Steps to Reproduce
1. Run the attached sample [FlyoutBehavior 2 1.zip](https://github.com/user-attachments/files/22039286/FlyoutBehavior.2.1.zip)
2. Select the FlyoutLayoutBehavior = Popover in options page observe the behavior.
Expected Behavior:
The FlyoutPage updates its layout according to the selected FlyoutLayoutBehavior without exceptions.
Actual Behavior:
On Windows, the app throws:
System.ArgumentException: Value does not fall within the expected range.
### Link to public reproduction project repository
_No response_
### Version with bug
9.0.100 SR10
### Is this a regression from previous behavior?
Not sure, did not test other versions
### Last version that worked well
_No response_
### Affected platforms
Windows
### Affected platform versions
_No response_
### Did you find any workaround?
_No response_
### Relevant log output
```shell
```
Contributor guide
Research direction
Run the attached FlyoutBehavior 2 1.zip sample on Windows and select FlyoutLayoutBehavior = Popover in the options page to reproduce the System.ArgumentException. Trace the FlyoutPage layout update from that interaction; done means changing the behavior to Popover or SplitOnPortrait updates the layout without throwing.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- desktop, frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100