Using a Button control, I tried to reset its colour ("color" to those of you
on the other side of the pond). I tried to use the BackColor attribute - but
that is in System.Windows.Forms.Button.
When I add "using System.Windows.Forms" I get an ambiguous usage error,
seeing as I am also "using System.Windows.Controls".
I thought it would be hoping too much to cast from
System.Windows.Controls.Button to System.Windows.Controls.Button or even cast
back to a UIElement and then to System.Windows.Controls.Button seeing as that
is not its base class.
Any ideas?
ZiggyShort - 24 Sep 2007 10:36 GMT
I might as well answer my own question:
b.Background = System.Windows.Media.Brushes.Red;
Don't want to use System.Drawing.Brush, so either exlipicitly route it, or
"using System.Windows.Media.Brushes.
> Using a Button control, I tried to reset its colour ("color" to those of you
> on the other side of the pond). I tried to use the BackColor attribute - but
[quoted text clipped - 7 lines]
> is not its base class.
> Any ideas?