I am working on a Windows 8 Metro App with HTML and JavaScript but i faced a problem with screen scaling.
Currently i am designing application for 1366×768. Generally there is a ListView on pages, you can see simple sketch for this resolution.

But when resolution increase, for example for 2560×1440 resolution ListView seems like image below.

As you can see this seems very ugly.
Actually i am not sure what i should do for high resolutions.
First thing i thought preserve same ListView at 1366×768 resolution in the middle of screen.
But i couldn’t find a way to do this.
There are a few things you can do to manage the layout. The first is to set the maximum number of rows that the
ListViewwill display in its grid layout, like this:If you have enough items, then this will have the effect of creating a wide, but shallow, layout.
You other option, the one you mention in your question, would be to centre the ListView and fix its size. I find that the easiest way to do this is to use the CSS flex box layout. Here is a little self-contained example that shows you both the
maxRowssetting and the CSS, which is applied to the element which contains theListView(and not the ListView itself). Create a new VS project, copy the markup into thedefault.htmlfile and start the app and you will be able to see the effect:It is hard to tell from your question, but you might also consider dropping the
ListViewand using something else. If you have a fixed number of items to display, you might want to use standard HTML element and use CSS (possibly using the new grid layout) to get more control over how they are displayed.