Difference between DesignWidth and Width in UserControl in WPF

前端 未结 2 1795
被撕碎了的回忆
被撕碎了的回忆 2020-12-30 20:02

When I create a new UserControl in WPF, studio creates some XAML:



        
2条回答
  •  庸人自扰
    2020-12-30 20:49

    d:DesignHeight and d.DesignWidth are for the Designer (the WYSIWYG), in Visual Studio or in Expression Blend. Height and Width are actually for runtime.

提交回复
热议问题