如何全屏WPF表单而不影响布局? [英] How to full screen WPF forms without affecting layouts?

查看:115
本文介绍了如何全屏WPF表单而不影响布局?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在不影响布局的情况下全屏WPF表单?我希望我的布局(按钮,图像包含)可灵活适应任何屏幕尺寸。



我正在使用vb.net。使用表达混合。



提前谢谢。

解决方案





在WPF中,存在相对宽度('auto'和*)除了固定像素宽度之外的概念。

确保您的应用对可用屏幕空间做出反应并调整相应的内部控制然后你必须做的第一件事是不要使用固定宽度



在设计应用程序之前(在混合或VS中),您必须了解WPF应用程序的测量和排列周期。这将帮助您了解WPF架构如何实际布局控件(这与Winforms中的Paint完全不同)。



下面的链接可能很好开始的地方:

http://msdn.microsoft.com /en-us/library/aa970268.aspx#Layout [ ^ ]





谢谢

-a

这个唯一的解决方案.....使用Auto而不是固定宽度进行布局


How to full screen WPF forms without affecting layouts? I want my layout (buttons, images included) to be flexible to any screen size.

I'm using vb.net. Using expression blend.

Thank you in advance.

解决方案

Hi,

In WPF there is concept of relative width ('auto' and *) apart form fixed pixel width.
To make sure that your app reacts to the available screen space and adjust the inner control accordingly then first thing you must do is do not use fixed widths.

Before designing your app (in blend or in VS), you must be aware of the Measure and Arrange cycles of the WPF application. This will help you understand how WPF architecture actually layouts your controls (this is a very different concept then that of Paint in Winforms).

The link below could be a good place to start with:
http://msdn.microsoft.com/en-us/library/aa970268.aspx#Layout[^]


Thanks
-a


The only solution for this ..... use Auto instead of fixed width for layout


这篇关于如何全屏WPF表单而不影响布局?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆