c# - Apply Transition with Silverlight Toolkit to Grid containing Canvas in Windows Phone 7 -
let me explain scenario
i developing windows phone 7 , have page on there button. @ buttons click event have added code show canvas panel present on page
canvas1.visibility = system.windows.visibility.visible;
this enables pop canvas instantly, want canvas should visible turnstile transition effect provided in silverlight toolkit windows phone 7.
how apply transition on canvas only.
you need like:
turnstiletransition turnstiletransition = new turnstiletransition { mode = turnstiletransitionmode.backwardin}; itransition transition = turnstiletransition.gettransition(canvas1); transition.completed += delegate { transition.stop(); }; transition.begin();
gettransition(uielement element) creates new itransition specified uielement.
note:handling of completed event optional , depends on specified animation.
Comments
Post a Comment