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