使用XAML隐藏Windows Phone 8.1中的状态栏
我正在尝试在Windows Phone 8.1中隐藏状态栏.我看到一个线程可以执行此操作(隐藏状态Windows Phone 8.1 Universal Apps中的工具栏),但这是C#.我想在XAML中隐藏此状态栏.原因是Expression在类构造函数中未检测到代码.当我启动该应用程序时,所有程序都可以正常运行,但是在Blend中,它仍然显示状态栏,因此我无法正确地进行设计...
I'm trying to hide status bar in Windows Phone 8.1. I see a thread to do this (Hide Status bar in Windows Phone 8.1 Universal Apps), but this is C#. I would like to hide this status bar in XAML. Reason is that Expression doesn't detect the code in class constructor. When I launch the app all is working, but in Blend it still display the status bar, and so I can't make correctly the design...
我的问题是:有没有办法在XAML中隐藏状态栏(通过Page标记或其他属性)?还是可以强迫Blend检测到我在构造函数中编写的内容?
My question is : Is there a way to hide status bar in XAML (via a property in Page tag or other) ? Or it is possible to force Blend to detect whatever I write in constructor ?
谢谢
无法在XAML中隐藏状态栏. 但是您可以将其隐藏在Expression Blend中.
There is no way to hide the status bar in XAML. But you can hide it in Expression Blend.
转到设备"选项卡,然后取消选择显示状态栏"刻度,如图所示.
Look to the Device Tab and then unselect the Show Status Bar tick as shown in the picture.