Window Size when SizeToContent is not specified

后端 未结 4 1557
借酒劲吻你
借酒劲吻你 2021-01-22 21:23

When the following XAML used, the window size is not 5000x5000, but some small window where the button is cropped.



        
4条回答
  •  既然无缘
    2021-01-22 21:56

    I guess the OS has provided the window with these values. It might be related to how Windows OS remembers the size of any window before it was last closed.*

    The same way I suppose windows provided a default height and width to your window when none of the dimensions where specified.

    • You could try it with notepad. Open it. Resize it. Close it. Now again open it. Hmm..

提交回复
热议问题