Silverlight 3 & Deeplinking

I have a requirement to implement some deep binding in a Silverlight application and thought the new navigation framework in Silverlight 3 would be perfect. However, after some digging into it, it uses the Uri to "swap" one piece of xaml for another using a Frame control.

What I would like to do is use a deep link to select the related item in the item control. Are there any lower-level objects that I can hook into to interact directly with the browser history (obviously I could write my own implementation, but I would prefer that I can use the built-in framework)?

Long shot bit.

J

+2


source to share


1 answer


I can't remember much about Silverlight 3 navigation, but you can do it by combining Silverlight 4 and Prism 4 navigation.

See this blog post for the full implementation. http://blogs.msdn.com/b/kashiffl/archive/2010/10/05/integrating-prism-v4-region-navigation-with-silverlight-frame-navigation.aspx



Essentially, the frame will handle the navigation portion and load the corresponding Prism module (if not already loaded) and then the view model will handle the OnNavigated event to make the final selection in the item control.

0


source







All Articles