黑屏只是闪了一会儿 [英] A black screen is just flashing for a while

查看:180
本文介绍了黑屏只是闪了一会儿的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的Windows phone 8应用我有对用户输入的搜索关键字文本框搜索页面。进入默认的SIP keyboard.The搜索结果的Enter键时,显示另一页的搜索将调用。为了导航到页面之前隐藏键盘,我用this.Focus()方法改变TextBox控件的焦点。但即使在这之后黑屏只是闪烁一段时间。有什么办法完全隐藏搜索方法和导航前的SIP键盘。请帮我。

In my Windows phone 8 application i have a search page which has a TextBox for user's to enter search keywords. The search will invoke when entering the "Enter" key of the default SIP keyboard.The search result is showing in another page. To hide the keyboard before navigating to result page, I changed the focus of TextBox control using this.Focus() method. But even after this a black screen is just flashing for a while. Is there any way to completely hide the SIP keyboard before the search method and the navigation. Please help me.

推荐答案

这是一个渲染的问题,解决这个问题的一种方法是改变不透明度OT了你的应用程序任务栏

This is a rendering problem, one way to fix this is to change the the opacity ot the your applicationbar

<shell:ApplicationBar IsVisible="True" Opacity="0.99">

当我有同样的问题,我想我需要解决这个问题,而不更改应用程序栏。所以,我在整个页面去了,什么似乎发生的是,我有很多的控制正在兴建我的全景里面,但它不是布局根网格的直接孩子,所以这是造成问题的原因。

When i had the same problem, i thought I needed to fix this WITHOUT changing the app bar. So i went through the whole page and what seems to happen is that i had a lot of controls being built inside my panorama, but it was not a direct child of the layout root grid, so that was causing the problem.

让我知道如何去(:

这篇关于黑屏只是闪了一会儿的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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