Hi, I have a viewmodel for setting theme colors. setting the primary color in xaml using Binding works without any issue, even during design time, it shows the default color in the page/grid. However if I change the Binding to x:Bind it does not work. How to solve this? where am I doing wrong?
<Page.Resources>
<themeViewModels:ThemeViewModel x:Key="ThemeViewModel"/>
</Page.Resources>
<Grid Grid.Column="1"
DataContext="{StaticResource ThemeViewModel}">
<Grid.Background>
<SolidColorBrush x:Name="ss" Color="{x:Bind PrimaryColor, Mode=OneWay}"/>
</Grid.Background>
</Grid>