Powered by MSDN

US - English
NEW! Silverlight 5 is available Learn More

Changing the Fill property. RSS

2 replies

Last post Jun 13, 2009 07:00 AM by royal_blue

(0)
  • apsync

    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

    jay nanavati

    Contributor

    3517 Points

    668 Posts

    Re: Changing the Fill property.

    Jun 13, 2009 05:53 AM | LINK

    Button has no Fill property. what do you want to change?
  • royal_blue

    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);

    Hope it helps you !

    ~~~~~~~~~~~~~~~~~~
    Please "Mark as Answer" if this post answered your question. :)