简体   繁体   English

不支持UWP NavigationView

[英]UWP NavigationView is not supported

I am trying to make UWP application with sidemenu. 我试图用sidemenu制作UWP应用程序。 When I try this tutorial, I get an error in XAML: 当我尝试教程时,我在XAML中收到错误:

NavigationView is not supported in a windows universal project

Build options: 构建选项:

Target Version:   Win 10 Creators Update (10.0; Build 15063)
Minimum Version:  November Update (10.0' Build 10586)

Requirements to use NavigationView Class: 使用NavigationView类的要求:

Device family: Windows 10 Fall Creators Update (introduced v10.0.16299.0 ) 器件系列:Windows 10 Fall Creators更新(引入v10.0.16299.0

API contract: Windows.Foundation.UniversalApiContract (introduced v5 ) API合同:Windows.Foundation.UniversalApiContract(介绍v5

Reference: NavigationView Class 参考: NavigationView类

NavigationView has also been backported to support all versions of Windows 10 starting with 14393 (Anniversary Update). NavigationView也已向后移植,以支持从14393(周年纪念更新)开始的所有Windows 10版本。

You can add it via NuGet and file issues here: https://github.com/Microsoft/microsoft-ui-xaml 你可以在这里通过NuGet和文件问题添加它: https//github.com/Microsoft/microsoft-ui-xaml

You'll have to change the target version to Win 10 Fall Creators Update (10.0; Build 16299) . 您必须将目标版本更改为Win 10 Fall Creators Update (10.0; Build 16299) Also the NavigationView control will not work on any previous version of Windows so your app will crash everywhere except 16299 and above if you use the NavigationView control without any API version checks. 此外, NavigationView控件将无法在任何以前版本的Windows上运行,因此如果您在没有任何API版本检查的情况下使用NavigationView控件,则除16299及更高版本外,您的应用程序将崩溃。

And to upgrade your PC to FCU you can use the tool provided here . 要将PC升级到FCU,您可以使用此处提供的工具。

You can use OneCode.Windows.UWP.Controls.NavigationView, it works on all Win10 Versions. 您可以使用OneCode.Windows.UWP.Controls.NavigationView,它适用于所有Win10版本。 You can get it from nuget https://www.nuget.org/packages/OneCode.Windows.UWP.Controls.NavigationView/ 你可以从nuget https://www.nuget.org/packages/OneCode.Windows.UWP.Controls.NavigationView/获得它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM