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

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -