How can I set background and foreground properties of WPF textblocks, using a System.Drawing.Color programmatically ? A solution without a converter would be nice.
System.Drawing.Color BackColor = System.Drawing.Color.Black;
System.Drawing.Color ForeColor = System.Drawing.Color.White;
TextBlock txt = new TextBlock ();
txt.Background=BackColor ;
txt.ForeGround=ForeColor ;
PS: The color I would be assigining would be from a windows forms app and hence it would be a System.Drawing.Color not a System.Windows.Media.Color as required by WPF.