xaml:
avaloniaColorPicker:ColorButton Grid.Row="0" Grid.Column="1" Color="{Binding MyColor}" HorizontalAlignment="Center"></avaloniaColorPicker:ColorButton>
vm:
private Color _myColor = Colors.Aqua;
public Color MyColor
{
get { return _myColor; }
set
{
SetAndRaise( ref _myColor, value );
}
}
It works fine, I can see Aqua color and even change it. BUT color code doesn't change.
If i do this: var a = _myColor.ToString(); I always get Aqua. What am I doing wrong?
I try this:
It works fine, I can see Aqua color and even change it. BUT color code doesn't change. If i do this:
var a = _myColor.ToString();
I always get Aqua. What am I doing wrong?