microsoft / microsoft/microsoft-ui-xaml

`TabItem` enters dragging state in `TabView` with `CanReorderTabs=false`

Open
#10,749 1 comment 0 reactions 0 assignees View on GitHub
area-TabView bug team-Controls
Dominant language
C++
Stars
8.4k
Forks
942
Avg merge
2d 7h
Merged PRs (30d)
105

Description

### Describe the bug

When `TabView` does not allow dragging & reordering of tabs, items can still enter dragging visual state and will stay in it until unfocused and refocused.

### Why is this important?

Invalid visual state.

### Steps to reproduce the bug

1. Use the following XAML:

```xml

A
B

```

2. Try to drag one of the items
3. **Note the item enters dragging visual state `DragDropVisualVisible` and stays in it**

https://github.com/user-attachments/assets/e04ecc1b-584b-49fc-8588-04691cc657c7

### Actual behavior

_No response_

### Expected behavior

_No response_

### Screenshots

_No response_

### NuGet package version

None

### Windows version

_No response_

### Additional context

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by tracing the TabView and TabItem drag-and-drop visual-state handling, reproducing the XAML case with CanReorderTabs="False". The work is done when attempting to drag a tab no longer leaves it in the DragDropVisualVisible state, with coverage for this configuration if the existing tests provide a suitable entry point.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.