microsoft / microsoft/WinUI-Gallery

TabView windowing sample crashes when re-docking a detached tab

Open
#2,211 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug needs-triage
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
  1. Open the TabView windowing sample.
  2. Left-click and hold a tab, then drag it outside the window to detach it.
  3. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.