In my Windows phone7 application I placed a canvas and have set its background color to some hex color code.Now I am not able get the hex color code value through c# code.I used the below code but it give the color value in system.windows.media.brush.Plz help me with an answer?
clr = Convert.ToString(clr1.Background);
It seems it returns a
Brush
and since you've set a color it should return aSolidColorBrush
. Try thisExample:
hexcolor
equals"#00F01080"