I have the following TabControl:
<TabControl x:Name="Tabs">
<TabItem x:Name="TabItem1" Header="TabItem1" />
<TabItem x:Name="TabItem2" Header="TabItem2" />
</TabControl>
TabItem1 has a ToolBar with some buttons inside. TabItem2 doesn't have a toolbar.
Since upgrading .NET version from 4.6.1 to 4.8 I encounter the following behaviour:
- When
TabItem1is being selected by the user the first button inside the toolbar gets focus. - When the user now selects
TabItem2it sometimes switches back toTabItem1. This seems to be because the first button inTabItem1remains it's focus.
Why didn't this happen with .NET 4.6.1? Is there any way to avoid this issue?