When you set your ButtonColor
, call PropertyChanged
. So:
#region colorofbutton
private Brush buttonColor; // Use the property accessors instead
public Brush ButtonColor
{
get
{
return buttonColor;
}
set
{
buttonColor = value;
OnPropertyChanged("ButtonColor");
}
}
#endregion