使用XAML隐藏Windows Phone 8.1中的状态栏 [英] Hide status bar in Windows Phone 8.1 with XAML

查看:88
本文介绍了使用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.

这篇关于使用XAML隐藏Windows Phone 8.1中的状态栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆