mc:Ignorable="d" 是什么意思?在 WPF 中是什么意思? [英] What does mc:Ignorable="d" mean in WPF?

查看:61
本文介绍了mc:Ignorable="d" 是什么意思?在 WPF 中是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

mc:Ignorable="d" 在 WPF 中是什么意思?

What does mc:Ignorable="d" mean in WPF?

而这一行:

d:DesignHeight="500" 
d:DesignWidth="300"

推荐答案

mc:Ignorable 命名空间提供了被 xaml 处理器忽略"的 xaml 定义.

The mc:Ignorable namespace provides xaml definitions that are "ignored" by the xaml processor.

这允许您指定设计人员在设计时使用的信息,而这些信息在运行时会被忽略.在您的情况下,您可以指定 DesignHeightDesignWidth,它们不是 Window 上的真实"属性,而是在设计器中工作以提供默认设计时体验.

This allows you to specify information used by the designer at design time which is ignored at runtime. In your case, you can specify DesignHeight and DesignWidth, which are not "real" properties on a Window, but work in the designer for providing a default design time experience.

这篇关于mc:Ignorable="d" 是什么意思?在 WPF 中是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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