protected override void OnActivated(IActivatedEventArgs args) { if (args.Kind == ActivationKind.ToastNotification) { ToastNotificationActivatedEventArgs eventArgs = args as ToastNotificationActivatedEventArgs; WwwFormUrlDecoder query = new WwwFormUrlDecoder(eventArgs.Argument); context.SendMessageAsync(query[0].Value, eventArgs.UserInput["replyTextBox"].ToString(), query[1].Value == "1"); } }
private void sendiMsgBtn_Click(object sender, RoutedEventArgs e) { context.SendMessageAsync(addressTextBox.Text, textTextBox.Text, false); }