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的覆蓋智能感知上看到它。我在這裏錯過了什麼嗎?我下載了一個示例搜索合同應用程序任何人都知道我錯過了什麼?爲什麼我不能重寫OnWindowCreated,我不能看到ShowOnKeyBoardInput屬性?
即使這部分缺失
SearchPane.GetForCurrentView().ShowOnKeyboardInput = true;
SearchPane.GetForCurrentView().ShowOnKeyboardInput = false;
ShowOnKeyboardInput不存在。
爲什麼我不能覆蓋OnWindowCreated,我沒有能看到ShowOnKeyBoardInput財產?
UPDATE:http://code.msdn.microsoft.com/windowsapps/Search-app-contract-sample-118a92f5/view/Discussions
獅子座,你可以改變這個項目的標題是問題形式?究竟是什麼問題...不能重寫OnWindowCreated? –
是的,喬恩爵士。 :P –
我與App設置示例演示有同樣的問題。你有沒有設法解決這個問題? – nicruo