-
Notifications
You must be signed in to change notification settings - Fork 44
Open
Description
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.
- ID: 2ecb8d9d-2599-a5e3-8cad-096b2a7931c3
- Version Independent ID: 2ecb8d9d-2599-a5e3-8cad-096b2a7931c3
- Content: AppNotificationBuilder.AddArgument(String, String) Method (Microsoft.Windows.AppNotifications.Builder) - Windows App SDK
- Content Source: winapps-winrt-build/xml/Microsoft.Windows.AppNotifications.Builder/AppNotificationBuilder.xml
- Product: reunion
- Technology: reunion-reference
- GitHub Login: @drewbatgit
- Microsoft Alias: drewbat
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels