本文介绍了http://schemas.microsoft.com/winfx/2006/xaml/presentation定义的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当您创建在Visual Studio中新WpfApplication项目你会得到如下的XAML。复制和粘贴的URL 的到我期望看到的XSD文件定义的浏览器,但我得到一个错误。为什么?



感谢

 <窗​​口x:类=WpfApplication1 .MainWindow
的xmlns =http://schemas.microsoft.com/winfx/2006/xaml/presentation
的xmlns:X =http://schemas.microsoft.com/winfx/2006 / XAML
标题=主窗口HEIGHT =350WIDTH =525>
<网格和GT;

< /网格和GT;
< /窗GT;


解决方案

这文章解释清楚:




When you create a new WpfApplication project in Visual Studio you get the following XAML. Copying and pasting the URL http://schemas.microsoft.com/winfx/2006/xaml/presentation into the browser I expected to see the XSD file definition but I get an error. Why?

Thanks.

<Window x:Class="WpfApplication1.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="MainWindow" Height="350" Width="525">
  <Grid>

  </Grid>
</Window>
解决方案

This post explains it clearly:

http://blog.pixelingene.com/2006/10/xmlnsdefinition-for-a-cool-namespace-mapping/

这篇关于http://schemas.microsoft.com/winfx/2006/xaml/presentation定义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-06 02:23