简体   繁体   中英

How can I detect landscape orientation in a WP7 template using SketchFlow?

I am using the official Windows Phone 7 SketchFlow template , based on the Windows Phone SDK. Is there any way to detect when the user has clicked the landscape orientation button in the player, and act accordingly? Specifically, I'd like to display completely different views depending on orientation. Thank you!

It looks like the portrait and landscape functionality is implemented with visual states. If you select the correct visual state and make your changes (such as showing different controls) it should work the way you want.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM