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 のオーバーライド インテリセンスにも表示されません。ここで何か不足していますか?サンプルの Search Contract アプリケーションをダウンロードしました。私が欠けているものを知っている人はいますか?
この部分も欠けている
SearchPane.GetForCurrentView().ShowOnKeyboardInput = true;
SearchPane.GetForCurrentView().ShowOnKeyboardInput = false;
ShowOnKeyboardInput が存在しません。
OnWindowCreated をオーバーライドできず、ShowOnKeyBoardInput プロパティが表示されないのはなぜですか?
更新: http://code.msdn.microsoft.com/windowsapps/Search-app-contract-sample-118a92f5/view/Discussions