Windows Phone 7 - 缺少 NavigationService.Navigate(object) 的重载
我想使用 NavigationService 在 Windows Phone 7 应用程序中创建一个漂亮的导航堆栈。看来我可以通过使用 NavigationService.Navigate(object) 方法并传递一个类似于 PhoneApplicationPage 的对象来实现 SilverLight 中的目标。
根据我所做的搜索,Windows Phone 7 仅在 XAML 中提供所需输出时才允许使用 NavigationService。我想向 NavigationService 传递一个我使用 C# 语法而不是 XAML 创建的对象。
有人有建议吗?
I would like to use the NavigationService to create a nice navigation stack in a Windows Phone 7 app. It seems I can accomplish the objective in SilverLight by using the NavigationService.Navigate(object) method and passing an object similar to the PhoneApplicationPage.
Based on the searching I've done, Windows Phone 7 only allows use of the NavigationService when the desired output is provided in XAML. I would like to pass the NavigationService an object I created using C# syntax and not XAML.
Does anyone have a suggestion?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在针对 Windows Phone 进行开发时,
NavigationService.Navigate
只有一个签名,即 NavigationService.Navigate(Uri)。您可能正在阅读WPF
的文档。When developing for Windows Phone, there is only one signature for
NavigationService.Navigate
and that is NavigationService.Navigate(Uri). You're probably reading the documentation forWPF
.