开发者

WPF Resolution Handling

I've got a list of 3 resolutions I need to target with a WPF application. However, I've never used WPF before and was wondering what the best way of targetting these would be.

1024x600, 160开发者_JS百科0,768 and 1024x576 are the main resolutions.

The application does not run full screen, so should I simply target the lowest one (1024 x 576) or is there a better way of handling this in WPF? Thanks


One of the advantages of WPF/Silverlight layout controls is that you don't need to know the target resolution.

It's possible to design your interface to be fully dynamic. You should be able to design it in a way that it looks good on any resolution.

I just wouldn't set any constraints such as MinWidth or MinHeight that would cause it to not fit in the smallest resolution you want to target.


It depends.

  • If your program is a simple collection of non-resizable controls, you should design your form for the smallest resolution and be non-resizable.

  • If your program has resizable controls (eg, a grid or multi-line textbox), you should make a resizable form that can fit the smallest resolution, but can be resized to take advantage of larger screens.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜