Tuesday, March 2, 2010

Change label color programmatically in WPF

Rather than System.Drawing.Color enum
use System.Windows.Media.Brushes

Me.lblDentist.Foreground = Brushes.Blue