Window Size when SizeToContent is not specified

后端 未结 4 1568
借酒劲吻你
借酒劲吻你 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:55

    If the width and height are not specified WPF uses 60% of the width of you primary screen (where the windows is actually displayed) and 60% of its height. This is done by the Application singleton where all Windows ultimately register themselfes.

提交回复
热议问题