我需要在用户导航到其他页面时禁用搜索超级按钮。
我尝试过以下操作但没有成功:
public void OnNavigatedFrom(NavigationEventArgs e)
{
_dataTransferManager.DataRequested -= OnDataRequested;
_searchPane.QuerySubmitted -= _querySubmittedHandler;
_searchPane.SuggestionsRequested -= _suggestionsRequestedHandler;
_searchPane.ResultSuggestionChosen -= OnSearchPaneResultSuggestionChosen;
_searchPane = null;
}
答案 0 :(得分:1)
_searchPane.ShowOnKeyboardInput = false;