cncolder,
You could do something like this:
var vsGroup = VisualStateManager.GetVisualStateGroups(LayoutRoot)[0] as VisualStateGroup;
vsGroup.CurrentStateChanging += new EventHandler<VisualStateChangedEventArgs>(vsGroup_CurrentStateChanging);
...
private void vsGroup_CurrentStateChanging(object sender, VisualStateChangedEventArgs e)
{
System.Diagnostics.Debug.WriteLine(e.NewState.Name);
}
If this has answered your question, please click on "Mark as Answer" on this post.
Thanks,
Page Brooks
Silverlight MVP, MCSD
PageBrooks.com | @pbrooks