Home > DeveloperSection > Interviews > How to change backcolor of button control dynamically

Posted on    March-12-2011 12:00 AM

 WPF WPF 
Ratings:
 1 Answer(s)
  2742  View(s)
Rate this:

Awadhendra Tiwari

Total Post:510

Points:2550
Posted on    March-12-2011 1:00 AM

System.Windows.Controls.Button b = new System.Windows.Controls.Button();

b.Content = "OK";

b.Background = System.Windows.Media.Brushes.Red;


Don't want to miss updates? Please click the below button!

Follow MindStick