William Thompson

William Thompson

  • 1.5k
  • 128
  • 292.8k

How do you color a rectangle in C# that has been declared in XAML in WPF?

May 21 2010 10:24 PM


How do you color a rectangle in C# that has been declared in XAML in WPF?
There is a rectangle control in XAML.  In my C# code there are times in which it would be nice to fill the background color.  How does one do this?

Answers (1)