[英]Make silverlight app on WP7 run full screen
I want my silverlight app to run in full screen (disabling the battery/signal bar up there) 我希望我的Silverlight应用程序在全屏模式下运行(禁用那里的电池/信号条)
I tried: 我试过了:
Application.Current.Host.Content.IsFullScreen = true;
But it doesn't work, how can I be able to do that? 但这不起作用,我该怎么做呢?
You need to set the SystemTray to invisible 您需要将SystemTray设置为不可见
xaml (in the page declaration): xaml(在页面声明中):
xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
shell:SystemTray.IsVisible="False"
code: 码:
SystemTray.IsVisible = false;
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.