microsoft / microsoft/WinUI-Gallery
TabView windowing sample crashes when re-docking a detached tab
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 3.6k
- Forks
- 756
- Avg merge
- 17h 51m
- Merged PRs (30d)
- 14
Description
Which version of the app?
WinUI 3 Gallery
Description
When using the TabView windowing sample in the WinUI Gallery, the app crashes if a tab is dragged out into a new window and then dragged back into the original window without releasing the mouse button.
Steps to reproduce
- Open the TabView windowing sample.
- Left-click and hold a tab, then drag it outside the window to detach it.
- Without releasing the left mouse button, drag it back over the original window.
Actual behavior
The app crashes.
Expected behavior
The tab should dock back into the original window without crashing.
Screenshots
https://github.com/user-attachments/assets/2cca3fc4-a3d0-4bc1-a656-5745498eb6e9
Windows version
No response
Additional context
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Open the TabView windowing sample and reproduce the crash by dragging a tab out and back without releasing the mouse button. Trace the detach and re-docking flow, then verify that the tab returns to the original window without crashing.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 58/100