wpf http://schemas.microsoft.com/winfx/2006/xaml/presentation 的架构文件的位置在哪里?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/21120000/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-13 10:31:31  来源:igfitidea点击:

Where is the location of schema file for http://schemas.microsoft.com/winfx/2006/xaml/presentation?

.netwpfxaml

提问by David Bower

I've been googling for the schema file that describes WPF elements for XAML but cannot find it. The namespace declaration should has a list of all WPF features, for example types, attributes, or elements that it adds to standard XAML.

我一直在谷歌搜索描述 XAML 的 WPF 元素的架构文件,但找不到它。命名空间声明应包含所有 WPF 功能的列表,例如它添加到标准 XAML 的类型、属性或元素。

I can find the schema file for XAML in Visual Studo cache directory. The file is called xaml2006.xsd. There is a wpfe.xsd, but its target namespace is http://schemas.microsoft.com/client/2007.

我可以在 Visual Studo 缓存目录中找到 XAML 的架构文件。该文件名为xaml2006.xsd。有一个wpfe.xsd,但它的目标命名空间是http://schemas.microsoft.com/client/2007

This may sound trivial, but I've spend hours to find this schema file. Where can I found a schema file (XSD file) with targetNamespace set to "http://schemas.microsoft.com/winfx/2006/xaml/presentation"? If it is hidden inside DLL file, then perhaps there is an open source resource that host this schema file?

这可能听起来微不足道,但我花了几个小时来找到这个架构文件。在哪里可以找到 targetNamespace 设置为“ http://schemas.microsoft.com/winfx/2006/xaml/presentation”的架构文件(XSD 文件)?如果它隐藏在 DLL 文件中,那么也许存在托管此架构文件的开源资源?

采纳答案by Rigin

Little late, hope this tutorial will be helpful who search for this : First NS you mentioned is the default namespace. and it doesn't exist in that URL provided, but its a unique name , etc.

有点晚了,希望本教程对搜索此内容的人有所帮助:您提到的第一个 NS 是默认命名空间。它不存在于提供的 URL 中,但它是一个唯一的 name 等。

http://video.ch9.ms/ch9/ff6f/e1477e72-b989-49c1-acdd-62802c36ff6f/ABSWP81Part3_mid.mp4Skip to 14.00

http://video.ch9.ms/ch9/ff6f/e1477e72-b989-49c1-acdd-62802c36ff6f/ABSWP81Part3_mid.mp4跳到 14.00

He says basically to use http://schemas.microsoft.com/winfx/2006/xaml:

他说基本上使用http://schemas.microsoft.com/winfx/2006/xaml

<Page 
    x:Class="HelloWorld.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:HelloWorld"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
?>