[UWP] [C#](NavigationView)Windows.UI.Xaml.Markup.XamlParseException [英] [UWP][C#](NavigationView)Windows.UI.Xaml.Markup.XamlParseException

查看:46
本文介绍了[UWP] [C#](NavigationView)Windows.UI.Xaml.Markup.XamlParseException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在通用Windows平台中使用新的NavigationView。我面临的错误是  this.InitializeComponent();上的Windows.UI.Xaml.Markup.XamlParseException;


更多详细信息:


例外的详细信息是: 


无法添加实例将"Windows.UI.Xaml.Controls.NavigationMenuItem"键入"Windows.Foundation.Collections.IVector"类型的集合。 [行:25位置:33]'¥b $ b


请帮助我。


提前致谢。

解决方案

嗨  Ravi Maurya027,


欢迎
到开发通用Windows应用论坛!
  请使用   标记 
发布到此论坛时,谢谢!


根据你的上述信息,我认为你应该注意你在xaml中的代码,我已经在官方文档中测试了代码  导航
查看
,您可以查看它。此外请确保您已安装内部预览SDK,将其定位在Build 16190上,并在具有相应操作系统版本(OS build 16199)的设备上进行测试。


祝你好运,


微风


I am using the new NavigationView in the Universal Windows Platform. The error I am facing is Windows.UI.Xaml.Markup.XamlParseException on the this.InitializeComponent(); line.

More details:

Details on the exception is : 

Cannot add instance of type 'Windows.UI.Xaml.Controls.NavigationMenuItem' to a collection of type 'Windows.Foundation.Collections.IVector'. [Line: 25 Position: 33]'

Please help me out.

Thanks in advance.

解决方案

Hi Ravi Maurya027,

Welcome to the Developing Universal Windows apps forum! Please utilize tagging when posting to this forum, thanks!

According to your above information, I think you should pay attention to your code in the xaml, I have tested the code in the official document Navigation view, you can have a check with it. Moreover please make sure you have installed the inside preview SDK, target it on Build 16190 and test it on the device with the corresponding OS version(OS build 16199).

Best regards,

Breeze


这篇关于[UWP] [C#](NavigationView)Windows.UI.Xaml.Markup.XamlParseException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆