I believe there's a typo in the Examples section.
var notification = new AppNotificationBuilder()
.AddText("Send a message.")
.AddTextBox("textBox")
.BuildNotification();
AppNotificationManager.Default.Show(notification);
should be something like (using "foo" and "bar"):
var notification = new AppNotificationBuilder()
.AddArgument("foo", "bar")
.AddText("Send a message.")
.AddTextBox("textBox")
.BuildNotification();
AppNotificationManager.Default.Show(notification);
and the XML would be:
<toast launch='foo=bar'>
<visual>
<binding template='ToastGeneric'>
<text>Notification text.</text>
</binding>
</visual>
</toast>
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.
I believe there's a typo in the Examples section.
should be something like (using "foo" and "bar"):
and the XML would be:
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.