Data-bound TabControls don't select an initial tab item
- Dominant language
- C#
- Stars
- 7.7k
- Forks
- 1.3k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 61
Description
* .NET Core Version: 3.1.302, 3.1.6
* Windows version: Windows 10 1903
* Does the bug reproduce also in WPF for .NET Framework 4.8?: Yes
**Problem description:**
Tab controls with data-bound `ItemsSource` don't select an initial tab item, if the tab control is visible at program start. If the tab control becomes visible later, it properly selects the first tab item. This can be verified by moving the "Dummy" tab item from the repro sample before the "Repro" tab item.
**Actual behavior:**

**Expected behavior:**
The inner tab control should automatically select the first item.
**Minimal repro:**
[Tabs.zip](https://github.com/dotnet/wpf/files/5034480/Tabs.zip)
Contributor guide
Assessment
This issue has not been assessed yet.