让WP7上的silverlight应用程序全屏运行

smo*_*med 1 c# silverlight windows-phone-7 windows-phone-7.1

我希望我的silverlight应用程序全屏运行(禁用那里的电池/信号栏)

我试过了:

Application.Current.Host.Content.IsFullScreen = true;
Run Code Online (Sandbox Code Playgroud)

但它不起作用,我怎么能这样做?

cal*_*lum 6

您需要将SystemTray设置为不可见

xaml(在页面声明中):

xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
shell:SystemTray.IsVisible="False"
Run Code Online (Sandbox Code Playgroud)

码:

SystemTray.IsVisible = false;
Run Code Online (Sandbox Code Playgroud)