How to control the state of the buttons to be in present based on an event happened in a Silverlight app?
Posted
by
vladc77
on Stack Overflow
See other posts from Stack Overflow
or by vladc77
Published on 2011-06-27T06:13:39Z
Indexed on
2011/06/27
8:22 UTC
Read the original article
Hit count: 169
Silverlight
|button
I am trying to avoid building two buttons when I really need one. In my Silverlight app scenarios, I have few grids with a different content and buttons that control the visibility of these grids. I need to be able to show a different visual for a button when its content grid is visible. I can control states such as MouseOver and Pressed and more with visual state manage. However, I am not sure how to achieve this functionality with. I also can place an image on top of the button and switch the visibility of both but it is not perfect for what I need. I am wondering if there is any way to achieve this behavior. Any ideas are highly appreciated!
© Stack Overflow or respective owner