We have a WPF application using PRISM, with a region of type TabControl.
<TabControl prism:RegionManager.RegionName="{x:Static inf:RegionNames.ContentRegion}">
<TabControl.ItemContainerStyle>
<Style TargetType="{x:Type TabItem}">
<Setter Property="Header" Value="{Binding TabName}" />
</Style>
</TabControl.ItemContainerStyle>
</TabControl>
And we are registering views with
_regionManager.RegisterViewWithRegion(RegionNames.ContentRegion, typeof(ContentView));
Problem is, this way the registered tab automatically gets selected. Is there a way to add a view as tab but NOT select it??
Aucun commentaire:
Enregistrer un commentaire