In the first of 2 navigation videos we filmed, David Poll joins John Papa to demonstrate how the Silverlight navigation API can be used to solve common navigational structures. David explains how navigation works with Silverlight, how it integrates with the Silverlight templates, and demonstrates how you can expand on its features using custom content loaders. Relevant links:
Follow us on Twitter @SilverlightTV or on the web at http://silverlight.tv/
Registration for PDC10 is now open, and space is limited – don’t miss this opportunity to experience the PDC in Redmond. Join the PDC email newsletter for the latest information about PDC10.
Good Tutorial and clearly explained
Althou I felt familiar with the navigation framework I just picked up some parts new to me. Thanks for this great show!
Thank you David and John for another Excellent TV Episode.
SLTV Rocks !!!
KRK
Excellent video, thanks for posting it.
Question about the INavigationContentLoader. Can more than one custom ContentLoader be specified in Xaml where the Frame is defined? I think I recall an error indicating that the <navigation:Frame.ContentLoader> can only be set once. Surly there is a way to use multiple content loaders; Errors, authentication...etc.
thanks again,
Greg
Greg,
It's not possible "by default". However, take a look at some of my ContentLoader posts on my blog. I have ContentLoaders that delegate to other ContentLoaders, allowing them to be chained together to "decorate" the loading behavior with error handling, authentication, etc. Thankfully, these ContentLoaders compose reasonably well, so you can really create some expressive declarative definitions of navigation behavior.
ContentLoader-related posts
Let me know if you have any questions! I'll be happy to try to help!
-David Poll
One thing for the next video would be nice to cover, is when a page is loaded in a frame and then within that page, there might be links to load other pages into the frame. Another words, instead of from outside of the frame to load a page, but rather a loaded page can load another page to replace itself in the frame.
Secondly, is ContentLoader covered in WP7?
Hello, great article but in SL4 i can see many article with design pattern mvvm which a best practise, why you don't use it ?
Great video. It's really useful.
Chris,
It's certainly possible to use MVVM with all of this -- the main reason it's not used here was because of time/simplicity constraints on the quick demo.
-David