This repository shows a crash in WinUi, when a number box is opened in a new window where the opt SpinButtonPlacementMode
is set to Compact
.
- Clone the repository.
- Open the solution in Visual Studio.
- Build the solution.
- Run the application.
- Click the "Click Me" button on first window.
- Click the number zone in the NumberBox in the new window (so that the flyout with the spin buttons is shown at least once)
- Close the secondary window
- Click the "Clicked" button on first window.
The application should not crash.
The application crashes with an UnhandledException.
Do not use SpinButtonPlacementMode.Compact
but Inline
or Hidden
.