and the modelview definition of the property is like this:
private Color _routeColor = Color.Red;
public MainViewModel()
{
RouteColor = Color.Red;
}
public Color RouteColor
{
get => _routeColor;
set
{
SetProperty( ref _routeColor, value );
_appConfig.RouteColor = value;
}
}
then the color displays as semi-transparent (alpha channel value 128). In fact, it doesn't appear like the binding is working, since changing the color to Blue doesn't change what gets displayed.
With apologies for being new to WPF... I'm using the pre-release version of the MVVM community toolkit.
If I bind ColorPicker to a Color value like this:
and the modelview definition of the property is like this:
then the color displays as semi-transparent (alpha channel value 128). In fact, it doesn't appear like the binding is working, since changing the color to Blue doesn't change what gets displayed.