I have a Wp7 that has two controls. One is a map, and the other is a panorama control. In one of the panorama items is a list of values. If a user clicks on a list item, I'd like to show a turnstile transition to a new control that shows more detail.
So far in XAML, I have an event bound to LeftMouseUp, and it triggers. However I'm now sure how to replace the current panoramaitem with a new control (view), or how to use a the TurnstileTransition provided by the silverlight toolkit, between the two.
TurnstileTransition transitionElement =
new TurnstileTransition { Mode = TurnstileTransitionMode.ForwardIn };
AlertDetailedView view = new AlertDetailedView();
view.DataContext = (e.OriginalSource as FrameworkElement).DataContext;
//this stuff below sorta doesnt really work...
ITransition transition = transitionElement.GetTransition(this);
transition.Completed += delegate
{
transition.Stop();
};
transition.Begin();