문제

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