Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typo in Examples code #75

Open
ccb012100 opened this issue Aug 6, 2023 · 0 comments
Open

Typo in Examples code #75

ccb012100 opened this issue Aug 6, 2023 · 0 comments
Assignees

Comments

@ccb012100
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants