How can I use Style Inheritance w/ multiple files? I've been able to utilize Stand-alone resource dictionaries but if a child style is BasedUpon a style in another file it isn't working.
In the example below, the ListView will have the specified SeparatorColor but not the BackgroundColor from the BasedUpon style.
BaseStyles.xaml
<?xml version="1.0" encoding="UTF-8"?>
<ResourceDictionary xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml">
<Color x:Key="LightPrimaryColor">LightPink</Color>
<Color x:Key="DarkPrimaryColor">DarkGreen</Color>
<Style x:Key="BaseColorStylePrimary" TargetType="View">
<Setter Property="BackgroundColor"
Value="{AppThemeBinding Light={StaticResource LightPrimaryColor}, Dark={StaticResource DarkPrimaryColor}}" />
</Style>
</ResourceDictionary>
SomeChildStyles.xaml
<?xml version="1.0" encoding="UTF-8"?>
<ResourceDictionary xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml">
<Style x:Key="ListViewStyleBasedOn"
TargetType="ListView"
BasedOn="{StaticResource BaseColorStylePrimary}">
<Setter Property="SeparatorColor"
Value="{AppThemeBinding Light=Orange, Dark=Red}" />
</Style>
</ResourceDictionary>
App.xaml
<?xml version="1.0" encoding="utf-8"?>
<Application xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="StyleInheritance.App">
<Application.Resources>
<ResourceDictionary Source="BaseStyles.xaml" />
<ResourceDictionary Source="SomeChildStyles.xaml" />
</Application.Resources>
</Application>
It looks like they made some changes a few years ago to achieve what I'm trying to do but when they introduced AppThemeBinding it wasn't expanded to handle this ?