I am developing a Windows Phone 7 application in C # and silverlight 4. I am new to silverlight. I have two buttons in the application for different purposes. I want to dynamically change the color of a button when a button is pressed. Therefore, I use the following code
IncomeButton.Background = new SolidColorBrush(Colors.Red);
But it does not work. Can you provide me with any code or link through which I can solve the above problem? If I am doing something wrong, then please guide me.
source
share