Suggested Guidance: Nested Frames with Silverlight Navigation?

Topics: Prism v4 - Silverlight 4
Jan 25, 2012 at 7:12 PM
Edited Jan 25, 2012 at 7:18 PM

Hello All,

I'm currently bolting together a Silverlight application using Prism.  I got the navigation working with the different components available through Karl's post here:

http://blogs.msdn.com/b/kashiffl/archive/2010/10/05/integrating-prism-v4-region-navigation-with-silverlight-frame-navigation.aspx

However, I'm now running into a very tricky scenario, that of having a view that in turn has another region that is of type Frame.  That is: a child frame within the parent (top) frame.

Are there any suggestions/samples on how to approach this to make this work correctly in Prism?  Ideally I'd like to send someone to my application with a URL such as http://mydomain/#/MainSection/SubSection/SubSubSection and then Prism would in turn drill down into the two sub-frames (that is, three total frames in all) and display the correct content in all three (or more, if necessary) frames.

Thank you for any assistance you can provide,

Michael

Developer
Jan 26, 2012 at 5:26 PM

Hi Michael,

As far as I know, as mentioned in this thread: "frame navigation is supported on Prism but there is no sample code like QuickStarts or Reference Implementation or guidance provided out of the box, apart from the one in Karl’s posts":

As a starting point, I believe you could check the following blog post about Silverlight frame navigation without prism (which includes the use of nested frames), to understand how Silverlight handles this scenario:

Additionally, you might find the following threads useful where users of the community shared their findings regarding prism and frame navigation:

Regards,

Damian Cherubini
http://blogs.southworks.net/dcherubini

Mar 3, 2012 at 8:04 PM
Edited Mar 3, 2012 at 8:04 PM

Thanks for your assistance Damian.  FWIW I had to build my own solution to make this work the way I was expecting, through the use of a RegionBehavior.

Source code for this can be found here:

http://dragonspark.codeplex.com/SourceControl/changeset/view/74698#1699893

A deployed example in action can be found here:

http://framework.dragonspark.us/#/Navigation/SecondSubSection

Mar 18, 2012 at 2:00 PM
Edited Mar 18, 2012 at 2:01 PM

Created a framework for creating Navigation based Silverlight application using prism easily.  It is partly based on Karl Shifflett's solution.  Thought I might share it.  It supports unlimited nested frames and parallel frames, MVVM friendly, Prism Module friendly etc... check out the example project at

http://ultimateframework.codeplex.com/