public override void OnActivated(string invokedArgs, NotificationUserInput userInput, string appUserModelId) { System.Windows.Application.Current.Dispatcher.Invoke(delegate { // Tapping on the top-level header launches with empty args if (invokedArgs.Length != 0) { // Perform a normal launch EditTextWindow mtw = new EditTextWindow(invokedArgs); mtw.Show(); return; } }); }
/// <summary> /// This method will be called when the user clicks on a foreground or background activation on a toast. Parent app must implement this method. /// </summary> /// <param name="arguments">The arguments from the original notification. This is either the launch argument if the user clicked the body of your toast, or the arguments from a button on your toast.</param> /// <param name="userInput">Text and selection values that the user entered in your toast.</param> /// <param name="appUserModelId">Your AUMID.</param> public abstract void OnActivated(string arguments, NotificationUserInput userInput, string appUserModelId);