Sign In|Join
Home/Silverlight.NET Forums/General Silverlight Programming/Programming with .NET - General/Changing the Fill property.
Last post Jun 13, 2009 07:00 AM by royal_blue
Member
4 Points
6 Posts
Jun 13, 2009 02:48 AM | LINK
Hello everyone,
I want to change the Fill property of a button on an event. How could I do this? I have tried SetValue() but no luck so far.
Thank you.
Contributor
3517 Points
668 Posts
Jun 13, 2009 05:53 AM | LINK
226 Points
66 Posts
Jun 13, 2009 07:00 AM | LINK
btn.Background = new SolidColorBrush(Colors.Blue);
apsync
Member
4 Points
6 Posts
Changing the Fill property.
Jun 13, 2009 02:48 AM | LINK
Hello everyone,
I want to change the Fill property of a button on an event. How could I do this? I have tried SetValue() but no luck so far.
Thank you.
jay nanavati
Contributor
3517 Points
668 Posts
Re: Changing the Fill property.
Jun 13, 2009 05:53 AM | LINK
royal_blue
Member
226 Points
66 Posts
Re: Changing the Fill property.
Jun 13, 2009 07:00 AM | LINK
btn.Background = new SolidColorBrush(Colors.Blue);
~~~~~~~~~~~~~~~~~~
Please "Mark as Answer" if this post answered your question. :)