tags:

views:

161

answers:

2

We are developing a little in house application that will run on monitor having multi resolutions. Now we want that the application should adjust itself and remain consistant over all monitors. I came from Java background too where we used different layouts to accomplish the task. I experimented in .NET with different layouts like UniGrid (which provide the consistancy but very restrictive) , Grid etc but failed in the required task. Can some one suggest me some possible layout model or some other solution? I Think If we can specify percentage width or height as we do in CSS/HTML Then we can adopt this cross resolution policy. I found Infergistics have such controls but i wondering if this can be achieved via default controls

P.S. I am actually trying in WPF (preferably WPF native App).

+2  A: 

It would completely depend on the content / context of your application, but the .Net Form designer provides you with some useful tools while designing your UI.

Most controls have an Anchor property that allows you specify that a control should stay anchored the specified distance from the top/left/bottom/right of the form during resizing.

Likewise the form itself exposes Resize and SizeChanged events that you can use to customise the UI when the form is resized.

Theres some information here as well regarding Layouts

http://msdn.microsoft.com/en-us/library/ms951306.aspx

Eoin Campbell
+3  A: 

The layout controls in WPF are vastly superior to those found in WinForms. It also features true resolution independent display using Fixed Documents, so the look is consistent even if the monitor DPI changes. This is something that no other Windows drawing API supports properly as far as I'm aware.

Stu Mackellar
But DocumentViewer which is used to create fixed documents does not support the Child Controls within it. While our application will have them, i mean its not about showing the documents on it.
Gripsoft