WPF UserControl Design Time Size

后端 未结 9 861
[愿得一人]
[愿得一人] 2020-11-30 22:36

When creating a UserControl in WPF, I find it convenient to give it some arbitrary Height and Width values so that I can view my changes in the Visual Studio designer. When

9条回答
  •  北海茫月
    2020-11-30 22:57

    Use MinWidth and MinHeight on the control. That way, you'll see it in the designer, and at runtime it will size the way you want.

提交回复
热议问题