Meine Toast Benachrichtigungen funktionieren gut und ich könnte einige Tasten hinzufügen und prüfen, welche Taste gedrückt wurde. Jetzt musste ich nach der Eingabe der Textbox in der Benachrichtigung suchen, aber ich weiß nicht wie. Ich habe bei Google nach etwas ähnlichem gesucht, aber nichts gefunden.Wie überprüfe ich Texteingabe Toast Benachrichtigung C#
Meine Toast Benachrichtigung sieht richtig aus, aber ich kann nur die Information bekommen, welche Taste gedrückt wurde.
protected ToastButton tsen = new ToastButton("reply", "reply") { ImageUri = "Assets/reply.png", TextBoxId = "txtboxrep"};
protected ToastTextBox txtboxrep = new ToastTextBox("txtboxrep");
ToastContent content = new ToastContent()
{
Launch = "TextBox",
Visual = new ToastVisual()
{
TitleText = new ToastText() { Text = "Please fill in the gap." },
BodyTextLine1 = new ToastText() { Text = "I need the following information:" },
BodyTextLine2 = new ToastText() { Text = txtboxmes }
},
Actions = new ToastActionsCustom()
{
Inputs = { txtboxrep },
Buttons = { tsen },
},
};
private void TText_Activated(ToastNotification sender, object args)
{
//I try to get the text
var targs = args as ToastActivatedEventArgs;
ttextreply = targs.Arguments;
//I only get "reply", this is the buttons name
}
Für Menschen unter der folgenden URL zur Eingabe Toast mit Blick auf nicht-UWP/Desktop-App-Benachrichtigungen mit Benutzertexteingabe einen Blick auf https://github.com/WindowsNotifications/Desktop-Toasts. –