////// Invoked when the application is activated to display search results. /// /// Details about the activation request. protected async override void OnSearchActivated(Windows.ApplicationModel.Activation.SearchActivatedEventArgs e) { // TODO: Register the Windows.ApplicationModel.Search.SearchPane.GetForCurrentView().QuerySubmitted // event in OnWindowCreated to speed up searches once the application is already running // If the Window isn't already using Frame navigation, insert our own Frame var previousContent = Window.Current.Content; var frame = previousContent as Frame; // If the app does not contain a top-level frame, it is possible that this // is the initial launch of the app. Typically this method and OnLaunched // in App.xaml.cs can call a common method. if (frame == null) { // Create a Frame to act as the navigation context and associate it with // a SuspensionManager key frame = new Frame(); $rootnamespace$.Common.SuspensionManager.RegisterFrame(frame, "AppFrame"); if (e.PreviousExecutionState == ApplicationExecutionState.Terminated) { // Restore the saved session state only when appropriate try { await $rootnamespace$.Common.SuspensionManager.RestoreAsync(); } catch ($rootnamespace$.Common.SuspensionManagerException) { //Something went wrong restoring state. //Assume there is no state and continue } } } frame.Navigate(typeof($safeitemname$), e.QueryText); Window.Current.Content = frame; // Ensure the current window is active Window.Current.Activate(); }
Invoked when the application is activated as the target of a sharing operation. Details about the activation request. void ...
Invoked when the application is activated to display a file open picker. ' ' Details about the activation request. Protected ...
Invoked when the application is activated to display a file open picker. Details about the activation request. protected ...
Invoked when the application is activated to display search results. ' ' Details about the activation request. Protected ...
Invoked when the application is activated to display search results. Details about the activation request. protected async ...
is a managed C++ assembly. Native C++ unit testing is not supported in managed C++ assemblies. Use unit testing for managed ...
is a MustOverride event in the base class '|2'. Visual Basic does not support event overriding. You must either provide an ...
is a P/Invoke declaration to an OLE32 API that cannot be reliably called after the runtime has been initialized. The workaround ...
is a P/Invoke declaration to an OLE32 API that cannot be reliably called against a runtime callable wrapper (a managed object ...