Application that changed for different resolutions

I am creating a new application on WPF using C#, (Visual Studio) however when i transfer my application to a different computer with a different resolution/screen size the application is too big for the page. Is there a way to make all of the application/buttons re size for the monitor resolution?

Sorry if this has already been asked, I couldn't find any related posts.

Thanks in advance.


i think you want to keep your application fit to the screen. WPF gives you very effective tool to deal with it, call <Viewbox> put your all controls inside </Viewbox>

read this and try View Box Tutorial


使用窗口的SizeToContent属性将其大小设置为其包含的项目(即WidthAndHeight ),而不是某些固定大小,在您的情况下大于“不同计算机”的显示器分辨率。

链接地址: http://www.djcxy.com/p/36846.html

上一篇: 申请解决问题

下一篇: 适用于不同分辨率的应用程序