c# - How to exit full screen mode for media element in windows 8.1 store app -
hi guys have added video application plays automatically when page loads , when video double tapped goes full screen. here code.
c#
private void mediasimple_doubletapped(object sender, doubletappedroutedeventargs e) { mediasimple.isfullwindow = true; }
xaml
<mediaelement x:name="mediasimple" source="ms-appx:///videos/1-learning-how-to-manage-things-yourself.mpg" horizontalalignment="stretch" verticalalignment="stretch" autoplay="true" doubletapped="mediasimple_doubletapped" />
what can add code guys allow me exit full screen mode when touch screen of device?
modify code :
mediasimple.isfullwindow = !mediasimple.isfullwindow;
Comments
Post a Comment