I’m trying to get an object’s current VisualState. I found an answer on SO that this isn’t possible, and another blog elsewhere that I should be able to get these like this:
var currentState = VisualStateManager.GetVisualStateGroups(ContainerGrid);
However curentState doesn’t seem to get anything. What am I doing wrong?
I found this answer worked better for me, as I didn’t need anything external: Silverlight: VisualStateManager.GetVisualStateGroups doesn't, How can I get them?