Creating xaml 'template' for multiple pages

Posted by superexsl on Stack Overflow See other posts from Stack Overflow or by superexsl
Published on 2010-06-15T00:39:00Z Indexed on 2010/06/15 0:42 UTC
Read the original article Hit count: 284

Hey,

I'm developing a Silverlight application for the first time. I've gone through some tutorials, but I can't seem to find anything that helps me with this particular problem. I would like a set of buttons to be present on all of my pages (like a template). When a button is pressed, I would like the ContentGrid to slide out and a new ContentGrid slide in (with the relevant .xaml file being loaded). Are there any tutorials showing the best way to do this? From samples I've seen, they only seem to transition between two pages, so copy-pasting the group of buttons on each xaml page isn't too much of a problem. However, with more pages, it would be inefficient to copy-paste the base layout each time.

Thanks for any suggestions

© Stack Overflow or respective owner

Related posts about c#

Related posts about silverlight-4.0