HOW TO CHANGE BACKCOLOR OF BUTTON CONTROL DYNAMICALLY

Awadhendra Tiwari

Total Post:510

Points:2550
Posted by  Awadhendra Tiwari
WPF 
WPF
 3207  View(s)
Ratings:
Rate this:
  1. Awadhendra Tiwari

    Post:510

    Points:2550
    How to change backcolor of button control dynamically

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

    b.Content = "OK";

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

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!