"搜索窗格"在Win 8应用元素未发现异常 [英] "Search Pane" element not found exception in win 8 app

查看:163
本文介绍了"搜索窗格"在Win 8应用元素未发现异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想开发的Visual Studio 2012,它实现搜索合约胜8应用。要启用搜索功能我已经加入搜索窗格中的元素。但是,当运行应用程序我得到一个异常

I am trying to develop a win 8 app in visual studio 2012 which implements search contract. To enable search functionality I have added "search pane" element. But while running the app I am getting an exception

"Element not found. (Exception from HRESULT: 0x80070490)"

的代码 -

this.searchPane = SearchPane.GetForCurrentView()

谁能告诉我是什么问题解决这一点。

can anyone tell me what is problem and solution for this.

推荐答案

这样的问题通常是从XAML标记出现。确保一切都在你的页面标记文件确定,在适当的方式描述的,没有冗余或缺少的属性的搜索窗格元素。

Such problems usually occur from XAML markups. Make sure everything is ok in your page markup files, that search pane element in described in appropriate way, without redundant or missing attributes.

这篇关于"搜索窗格"在Win 8应用元素未发现异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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