4

I trying to make my application working for all resolution for that I used ViewBox . But ViewBox is not adapting the size of screen.It's somewhat bigger than the screen. How page should appear for all resolutions :enter image description here

But Problem is with increasing or decreasing the resolution the page willn't fit to screen inspite showing gridview scroller to scroll.CODE :-

<GridView>
<ViewBox Stretch="Fill" >
<GridViewItem>
...
</GridViewItem>
</ViewBox>
</GridView>
Nitin Maheshwari
  • 213
  • 2
  • 10

2 Answers2

1

Viewbox should be applied on entire grid or gridview.

<Viewbox Stretch="Fill" StretchDirection="Both">
    <GridView>
         <GridViewItem>
              ...
         </GridViewItem>
    </GridView>
</Viewbox>
Farhan Ghumra
  • 15,180
  • 6
  • 50
  • 115
1

You should put everything into standard Grid, anchor this to device borders (left,right, top, bottom).

Lelezeus
  • 498
  • 3
  • 17