for*_*yez 5 c# xml wpf xaml xml-namespaces
我理解常规的XML命名空间,例如:
xmlns:myExample="clr-namespace:WindowsApp.MyNamespace;assembly=MyAssembly"
Run Code Online (Sandbox Code Playgroud)
但我经常看到表单的命名空间:
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
Run Code Online (Sandbox Code Playgroud)
这些URL名称空间意味着什么?当我在浏览器中输入URL时,URL不起作用; 有谁知道这是如何工作的?提前致谢.
请参阅MSDN 上的此页面和相关属性:XmlnsDefinitionAttribute
此属性由 XAML 处理器用于 clr 映射,它允许将一个或多个 clr 命名空间映射到单个命名空间xmlns,并且可以在程序集信息中定义。