Hello I am working with dragablz:TabablzControl and I need disable a tab but I can't.
This is my code:
<dragablz:TabablzControl
FixedHeaderCount="4"
Grid.Row="1"
Grid.Column="0"
Grid.ColumnSpan="2"
BorderThickness="0"
SelectedIndex="{Binding SelectedTab}">
<TabItem Header="{Resx ApplicationView_mnuStatus}" IsEnabled="false" Visibility="Hidden" >
<views:StatusView>
<views:StatusView.DataContext>
<viewmodels:StatusViewModel />
</views:StatusView.DataContext>
</views:StatusView>
</TabItem>
<TabItem Header="{Resx ApplicationView_mnuServers}" IsEnabled="false" Visibility="Hidden" >
<views:ServersMainView>
<views:ServersMainView.DataContext>
<viewmodels:ServersMainViewModel />
</views:ServersMainView.DataContext>
</views:ServersMainView>
</TabItem>
</dragablz:TabablzControl>
Visibility = "hidden" doesn't work isEnabled = "false" does't work
Please help! Thanks!
Dragablz doesn't support disabling of a tab.
Why? Because it doesn't make too much sense in a scenario where other tabs could be dragged into another window, leaving your disabled tab exposed.
You should either: