Here's the scenario: I am building a mobile application that will adapt its color theme based on the customer, where their logo and theme colors are stored in a database. I retrieve those values and set them in my ViewModel. Now I'm trying to retrieve them in the UI. In My AppShellViewModel I have the Background Property, and run the following snippet:
<VisualState.Setters>
<Setter TargetName="FlyoutItemLabel" Property="Label.TextColor" Value="{Binding Background}" />
</VisualState.Setters>
No matter what I try, the font is always black (instead of what it should be).
So my question is, is there a way in the code behind to set the property for the FlyoutItemLabel TextColor in the code behind, since it appears that customizing through the XAML isn't working/binding? Thanks!