protected override void OnWindowCreated(WindowCreatedEventArgs args)
{
// Register QuerySubmitted handler for the window at window creation time and only registered once
// so that the app can receive user queries at any time.
SearchPane.GetForCurrentView().QuerySubmitted += new TypedEventHandler<SearchPane, SearchPaneQuerySubmittedEventArgs>(OnQuerySubmitted);
}
似乎无法覆盖 onWindowCreated 我什至在 App.xaml.cs 的覆盖智能感知上都没有看到它。我在这里错过了什么吗?我下载了一个示例搜索合同应用程序。有人知道我错过了什么吗?
连这部分都不见了
SearchPane.GetForCurrentView().ShowOnKeyboardInput = true;
SearchPane.GetForCurrentView().ShowOnKeyboardInput = false;
ShowOnKeyboardInput 不存在。
为什么我无法覆盖 OnWindowCreated并且看不到ShowOnKeyBoardInput 属性?
更新:http ://code.msdn.microsoft.com/windowsapps/Search-app-contract-sample-118a92f5/view/Discussions