How to adjust xaml page for every resolution and screensize? -


i developing windows 8.1 store app.by default windows store apps generate pages having 10.6" screen size , 1366*768 resolution.i want every xaml page fit on screen sizes , resolutions.i solved problem using viewbox 1 page not behaving expected.i doing this:<viewbox> <grid background="{themeresource applicationpagebackgroundthemebrush}"> <grid.columndefinitions> <columndefinition width="auto"/> <columndefinition width="*"/> </grid.columndefinitions> </grid>

the grid not taking whole width of page viewbox taking.please help.

by default viewbox stretch uniform maintain aspect ratio of contents. can set stretch property fill if want distort fill whole page.

you don't include contents of grid in code snippet, it's not clear have in there know how stretch. since it's stretching fill vertically not horizontally expect contents taller wide.

as chris w notes in comment, viewbox not want here. in general you're better off using flexible layout controls such grid. if remove viewbox grid (assuming it's in root of page) expand full window size. using relative row , column sizes (as do) rather hardcoding sizes layout should adjust page size.

for extreme differences such portrait vs. landscape vs. skinny may want use visual states provide different layouts same content. msdn's quickstart: designing apps different window sizes goes detail on how this.


Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -