WPF xmlns:"clr-namespace" URI引用程序集中未包含的名称空间 [英] WPF xmlns: The 'clr-namespace' URI refers to a namespace that is not included in the assembly
本文介绍了WPF xmlns:"clr-namespace" URI引用程序集中未包含的名称空间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在学习xaml中的数据绑定,而这个xmlns问题阻止了我.我的CS代码在名称空间"Ping"中.这是我的MainWindow.xaml:
I am learning data binding in xaml and this xmlns problem is stopping me. My cs code is in namespace "Ping". Here is my MainWindow.xaml:
<Window x:Class="Ping.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:custom="clr-namespace:WPFDemo;assembly=WPFDemo"
xmlns:local="clr-namespace:Ping"
最后一行抱怨如标题所示.为什么不起作用?我正在使用"Ping",这是我获得的唯一名称空间.
The last line complains as in the title. Why is it not working? I am using "Ping" and it's the only namespace I got.
谢谢
推荐答案
如果Ping
是您正在使用的唯一名称空间,则应删除对WPFDemo
If Ping
is the only namespace you're using, you should remove the reference to WPFDemo
这篇关于WPF xmlns:"clr-namespace" URI引用程序集中未包含的名称空间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文