问题描述
我将我的win8.1项目升级到win10,但在'公共页面上有一个未定义的错误.NavigationHelper'在下面的代码中。 这是8.1 app页面中的默认代码。
I upgraded my win8.1 project to win10 but have an undefined error on a page for 'Common.NavigationHelper' in the below code. This was default code in 8.1 app page.
这是多余的还是有一种新的写法。 我使用OnNavigatedFrom子,所以我需要下面这个,不是吗?
Is this redundant or is there a new way of writing this. I use the OnNavigatedFrom sub so I would need the below for this, wouldn't I?
谢谢,
Kieran
Thanks,
Kieran
Public ReadOnly Property NavigationHelper As Common.NavigationHelper
获取¥b $ b 返回Me._navigationHelper
结束获取¥b $ b 结束物业
私人_navigationHelper As Common.NavigationHelper
Public ReadOnly Property NavigationHelper As Common.NavigationHelper
Get
Return Me._navigationHelper
End Get
End Property
Private _navigationHelper As Common.NavigationHelper
推荐答案
作为友情提醒,请务必根据
发布指南:主题行标签
As a friendly reminder please make sure to add the appropriate tags to the title of your post as perGuide to posting: subject line tags
是的,你是对的。 UWP应用程序中缺少Common.NavigationHelper,我建议您在
上检查此官方UWP XAML导航菜单示例
GitHub 。之后,请查看 AppShell 页面,了解如何在Windows Universal应用中实施导航。
Yes, you are right. The Common.NavigationHelper is missing in the UWP app, I would recommend you to check this official UWP XAML Navigation Menu sample onGitHub. After that please check the AppShell page to see how to implement the navigation in Windows Universal apps.
这篇关于[UWP]项目从8.1 app升级 - Common.NavigationHelper错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!