wpf窗口 [英] wpf window
本文介绍了wpf窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
hai to all,
我在wpf上练习。如何让我的窗口成为屏幕的中心。
hai to all,
am practicing on wpf . how can i make my window as center to the screen.
推荐答案
WindowStartupLocation="CenterScreen"
做所有这些事情:
0)设置HorizontalAlignment
和VerticalAlignment
属性到中心。
1)删除保证金
属性完全
2)设置宽度
和高度
到不超过显示器分辨率的东西。
Do all of these things:
0) Set theHorizontalAlignment
andVerticalAlignment
properties to Center.
1) Remove theMargin
property completely
2) Set theWidth
andHeight
to something that does not exceed the resolution of the monitor.
这篇关于wpf窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文