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);
}
Can’t seem to override onWindowCreated I don’t even see it on the override intellisense of the App.xaml.cs. Am I missing something here? I downloaded a sample Search Contract application. Anyone knows what I’m missing?
Even this part is missing
SearchPane.GetForCurrentView().ShowOnKeyboardInput = true;
SearchPane.GetForCurrentView().ShowOnKeyboardInput = false;
ShowOnKeyboardInput doesn’t exist.
Why I cannot override the OnWindowCreated and I don’t get to see the ShowOnKeyBoardInput property?
UPDATE: http://code.msdn.microsoft.com/windowsapps/Search-app-contract-sample-118a92f5/view/Discussions
I’ve found out what was the problem.
The OnWindowCreated method was implemented in Windows 8 RTM release. So if you are still getting this problem upgrade your Windows.