Silverlight 3 和深度链接
我需要在 Silverlight 应用程序中实现一些深度链接,并认为 Silverlight 3 中的新导航框架将是理想的选择。然而,在进行了一些挖掘之后,它使用 Uri 使用 Frame 控件将一个 xaml“交换”为另一个 xaml。
我想做的是使用深层链接在项目控件中选择其相关项目。是否有任何较低级别的对象可以利用来直接与浏览器历史记录交互(显然我可以编写自己的实现,但如果我可以利用内置框架,我更愿意这样做)?
有点远射。
J
I have a requirement to implement some deep linking into a Silverlight application and thought the new navigation framework in Silverlight 3 would be ideal. However after doing some digging about it uses Uri's to 'swap' one piece of xaml for another using the Frame control.
What I'd like to do, is use the deep link to select it's relating item in an items control. Are there any lower level objects i can tap into to interact with the browser history directly (Obviously i could write my own implementation but i'd prefer ti if i could tap into the built in framework)?
Bit of a long shot.
J
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不太记得 Silverlight 3 导航,但您可以通过组合 Silverlight 4 导航和 Prism 4 来实现这一点。
有关完整实现,请参阅此博客文章。
http://blogs.msdn.com/b/kashiffl/archive/2010/10/05/integrating-prism-v4-region-navigation-with-silverlight-frame-navigation.aspx
本质上框架将处理部分导航并加载适当的 Prism 模块(除非已加载),然后视图模型处理 OnNaviged 事件以在项目控件中对项目进行最终选择。
I can't remember much about Silverlight 3 navigation but you can do this by combining Silverlight 4 navigation and Prism 4.
See this blog post for the a 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 part of the navigation and load the appropriate Prism module (unless it's already loaded) and then a view model handles an OnNavigated event to do the final selection of the item in your items control.