I'm wondering how come VSM is looking for root object instead of reading VSG directly?
Let's say I have UserControl as below.
I changed the state from code as below. then, it won't work.
bool result = VisualStateManager.GoToState(this, "Loaded", false);
Code should be changed like that .
IList<VisualStateGroup> groups = VisualStateManager.GetVisualStateGroupsInternal(control);