Вопрос

I'm trying to use the new 8.1 SearchBox Control in WinJS, but if I already have a Search Contract bound to my app for the Search Charm, I get an access denied error: Can't hide this app in the search pane because the app has already accessed the search pane.

Can I not use both the new Search Control and the Search Pane at the same time?

Это было полезно?

Решение

According to MSDN documentation, no you can't:

An app can't use both the search box (Windows.UI.Xaml.Controls.SearchBox for Windows Store apps using C++, C#, or Visual Basic, WinJS.UI.SearchBox for Windows Store apps using JavaScript) and the SearchPane

http://msdn.microsoft.com/en-us/library/windows/apps/dn301949.aspx

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top