标记扩展和特定的标记扩展 [英] Markup extensions and specific Markup Extensions

查看:73
本文介绍了标记扩展和特定的标记扩展的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

WPF:

动态资源与静态资源和相对资源+使用示例之间有什么区别?

什么时候使用x:Type,x:Static,x:Null,x:Array,x:key +使用示例?在xaml中创建的这些特定名称和自定义名称中,x关键字的含义是什么?

WPF:

What is the difference between dynamic resource to static resource and to relative resource + examples of use?

When do we use x:Type, x:Static, x:Null, x:Array, x:key + examples of use? What is the meaning of the x keyword in these specific names and in custom names we create in the xaml?

推荐答案

StaticResource,您可以看到该链接:

For the difference between DynamicResource and StaticResource, you can see that link:

对于第二个问题,x只是一个XML名称空间.可能声明如下:

For the second question, x is just an XML namespace. Probably declared as the following:

<Window 

    ...

        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

    ...

        >
    ...
</Window>

有关特定的关键字,请参见相应的MSDN主题: x:Type x:Static x:空 x:Array 和, x:Key .

For the specific keywords, see the appropriate MSDN topics: x:Type, x:Static, x:Null, x:Array and, x:Key.


这篇关于标记扩展和特定的标记扩展的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆