I've been bashing my head trying info on how to do a global override for all of my TabView tabs. I managed to piece together how to get the un-selected ones to match my theme and background, but I cannot for the life of me get the style triggers to work on selected tabs, which remain having the same default "purple" background.enter image description here

I know this is working correctly within App.xaml 's ResourceDictionary section:

<Color x:Key="TabViewBackgroundLight">lightGrey</Color> <Color x:Key="TabViewBackgroundDark">#1f1f1f</Color> <Color x:Key="TabViewSelectedBackgroundLight">DarkGrey</Color> <Color x:Key="TabViewSelectedBackgroundDark">LightGrey</Color> <Style TargetType="Layout" Class="TabView.Header" ApplyToDerivedTypes="True" > <Setter Property="BackgroundColor" Value="{AppThemeBinding Light={StaticResource TabViewBackgroundLight}, Dark={StaticResource TabViewBackgroundDark}}" /> </Style> <Style TargetType="ContentView" Class="TabView.Content" > <Setter Property="BackgroundColor" Value="{AppThemeBinding Light={StaticResource TabViewBackgroundLight}, Dark={StaticResource TabViewBackgroundDark}}" /> </Style>

But anything else I do that I have found any documentation on has not worked, such as setting style.triggers with a DataTemplate for example.
Googling has also proven fruitless as a lot of things are referenced to much older items that no longer works.

Vlad SD's user avatar

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.