Windows Phone 8 Control Orientation -


i'm working on custom control windows phone 8. control includes videobrush need rotate keep consistent outside page page rotates. assumed control class have onorientationchanged event phoneapplicationpage does, doesn't.

is there anyway of detecting orientation of containing page? add method control allow rotating video feed. developer using control able update control's orientation on page's orientationchanged event seems clunky.

you can subscribe orientationchanged event of phoneapplicationframe, available via app.rootframe.

if need page, can navigate visualtree find containing page visualtreehelper.getparent, , hook orientation changed event yourself.


Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -