w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
WPF app using ExpressionDark theme, want to extend TabItem Header style

Instead of :

<Style x:Key="TabItemContainerStyle" TargetType="TabItem"
>
....
....
</Style>

Try below code :

<Style x:Key="TabItemContainerStyle" TargetType="{x:Type
TabItem}" BasedOn="{StaticResource {x:Type TabItem}}" >
....
....
</Style>

Or if it does not work, then

Change

BasedOn="{StaticResource {x:Type TabItem}}"

to

BasedOn="{StaticResource NameOfYourStyleDeclaredInTheme}"




© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.