在下面的每个默认WPF窗口中,引用了四个名称空间.我知道:
的xmlns = "http://schemas.microsoft.com/winfx/2006/xaml/presentation"
和
的xmlns:X = "http://schemas.microsoft.com/winfx/2006/xaml"
是映射库PresentationCore.dll和PresentationFramework.dll.但是我在哪里可以找到库文件映射命名空间
的xmlns:d = "http://schemas.microsoft.com/expression/blend/2008"
和
的xmlns:MC = "http://schemas.openxmlformats.org/markup-compatibility/2006"
?
<Window x:Class="WpfApplication1.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
Title="MainWindow" Height="350" Width="525">
<Grid>
</Grid>
</Window>
Run Code Online (Sandbox Code Playgroud) 我一直在谷歌搜索描述XAML的WPF元素但无法找到它的模式文件.名称空间声明应该包含所有WPF功能的列表,例如它添加到标准XAML的类型,属性或元素.
我可以在Visual Studo缓存目录中找到XAML的模式文件.该文件名为xaml2006.xsd.有一个wpfe.xsd,但它的目标命名空间是http://schemas.microsoft.com/client/2007.
这可能听起来微不足道,但我花了好几个小时才找到这个模式文件.我在哪里可以找到targetNamespace设置为" http://schemas.microsoft.com/winfx/2006/xaml/presentation " 的模式文件(XSD文件)?如果它隐藏在DLL文件中,那么可能有一个托管这个模式文件的开源资源?