XSL
XSL

Reputation: 3055

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, 1600,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

Upvotes: 0

Views: 1082

Answers (2)

SLaks
SLaks

Reputation: 887449

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.

Upvotes: 1

Mike
Mike

Reputation: 323

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.

Upvotes: 1

Related Questions