How to collapse system tray in windows 10 Phone UWP -


i'm developing windows 10 uwp app. need collapse system tray windows 10 mobile app.

finally got answer

var statusbar = "windows.ui.viewmanagement.statusbar"; if (apiinformation.istypepresent(statusbar)) {                 //await windows.ui.viewmanagement.statusbar.getforcurrentview().showasync();                await windows.ui.viewmanagement.statusbar.getforcurrentview().hideasync(); } 

note: don't forget add windows phone extention before using above code

fore more info: https://msdn.microsoft.com/en-us/library/windows/apps/dn609832.aspx


Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -