One possible solution is to use SolidColorBrush
in resources
Example define SolidColorBrush
, with x:Name="AppBrush"
in App.xaml resources
<SolidColorBrush x:Key="AppBrush" Color="#FF7DC959"/>
If your binding Target is Color then it will be like this
<....BackgroundColor="{Binding Color,Source={StaticResource AppBrush}}">
And if your binding target is SolidColorBrush it will be like this
<....BackgroundColor="{StaticResource AppBrush}">
Then you can change Color property in code
SolidColorBrush brush = (SolidColorBrush)App.Current.Resources["AppBrush"];
brush.Color = Colors.DarkGray;