What does mc:Ignorable=“d” mean in WPF?

后端 未结 3 1539
执念已碎
执念已碎 2021-01-30 12:21

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

And this row:

d:DesignHeight=\"500\" 
d:DesignWidth=\"300\"
3条回答
  •  北海茫月
    2021-01-30 12:55

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

    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.

提交回复
热议问题