How do I programmatically get the current Visual State of a WPF FrameworkElement?

Posted by Spines on Stack Overflow See other posts from Stack Overflow or by Spines
Published on 2010-01-14T15:20:29Z Indexed on 2010/04/25 21:53 UTC
Read the original article Hit count: 949

Filed under:

How do I programmatically get the current Visual State of a WPF FrameworkElement? And by state I mean the states like "Normal", "MouseOver", "Disabled", etc.

EDIT: Basically, I am changing the Visual state of a button with VisualStateManager.GoToState(e, "MouseOver", true);, and I want to know what state to change it back to after I am done.

© Stack Overflow or respective owner

Related posts about wpf