Hello,
I'm currently experiencing a strange behaviour with the SfTabControl.
I have declared colors in my global Style Resources which I use for all my UI Elements:
<Color x:Key="FGColor">#eaac2a</Color>
<Color x:Key="DisabledFG">#666666</Color>
<StaticResource x:Key="UIForeground" ResourceKey="FGColor"/>
<StaticResource x:Key="DisabledForeground" ResourceKey="DisabledFG"/>
My TabControl is implemented this way:
<tab:SfTabControl x:Name="TabControl" SelectedIndex="{Binding SelectedTabIndex, Mode=TwoWay}" EnableSwipeGestures="True">
<tab:SfTabItem Header="Local" Foreground="{StaticResource DisabledForeground}" SelectedForeground="{StaticResource UIForeground}">
<!--Content-->
</GridView>
</tab:SfTabItem>
<tab:SfTabItem Header="Community" Foreground="{StaticResource DisabledForeground}" SelectedForeground="{StaticResource UIForeground}">
<!--Content-->
</tab:SfTabItem>
</tab:SfTabControl>
In my preview the StaticResource is used properly, however in runtime, the SelectedForeground is ignored (all other UIElements like the Page Header, the Navigation Pane etc. still uses the UIForeground, even the normal 'non-selected' Foreground Property is working with its static resource).
See the following image for visualization: