This is a mirror of official site: http://jasper-net.blogspot.com/

Handling WP7 orientation changes via Visual States

| Tuesday, March 22, 2011
It is pretty well known that an app can be notified of the phone’s orientation changes via the PhoneApplicationFrame.OrientationChanged event. However, if you are as serious about sharing the work between the designer and the developer as I am, you will not be happy with this – the changing of the layout should be the responsibility of the designer, not the developer.

Of course, the best way to achieve the different layouts is via Visual States. You can define two states like this in Blend:

image_5F00_thumb_5F00_3FF3351C.png

And move your controls around. For example, in SurfCube V2.2, we wanted to have the tabs and the tab buttons below each other in Portrait mode, but in a totally different arrangement in Landscape.

image_5F00_thumb_5F00_1199AF6F.png

Read more: VBandi's blog

Posted via email from Jasper-net

0 comments: