문제

I'm trying to port my WP8 app to WP8.1 by creating a new Universal app.

One thing that really drives me crazy is the new scaling behaviours of WP on higher resolution screens.

I just want my XAML to scale up (so everything becomes bigger). Just like it did on WP8. I've tried to do this with a Viewbox but that didn't work out very well either (weird margins all over the place :S).

How do I achieve this?

Kind regards,

Niels

도움이 되었습니까?

해결책

I'm also making use of Viewboxes and had problems with weird margins but setting the Stretch property of the Viewbox to Fill solved it:

<Viewbox Stretch="Fill">
        <Grid Height="1280" Width="768">

            <Grid> ... </Grid>

        </Grid>
</Viewbox>

Hope this helps!

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top