I am currently trying to convert a brush type to color using this code
Color a = (brush1 as SolidColorBrush).Color;
but i am getting a Nulpoint exception.Can anyone help?
I am currently trying to convert a brush type to color using this code
Color a = (brush1 as SolidColorBrush).Color;
but i am getting a Nulpoint exception.Can anyone help?