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

Add a default button to TaskDialog if no buttons were setup #55

Open
augustoproiete opened this issue Sep 5, 2021 · 0 comments
Open
Labels
enhancement New feature or request good first issue Good for newcomers hacktoberfest https://hacktoberfest.digitalocean.com help wanted Extra attention is needed up-for-grabs
Milestone

Comments

@augustoproiete
Copy link
Member

Spin-off of #48

If you attempt to call ShowDialog on a TaskDialog that you haven't added any buttons to, the call to ShowDialog will throw an InvalidOperationException.

Example:

var dialog = new Ookii.Dialogs.Wpf.TaskDialog
{
    Content = "Message",
    MainInstruction = "Instruction",
};

dialog.ShowDialog(); // InvalidOperationException

Let's add a default OK button to the TaskDialog if no buttons were setup.

@augustoproiete augustoproiete added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers up-for-grabs labels Sep 5, 2021
@augustoproiete augustoproiete added this to the Future milestone Sep 5, 2021
@augustoproiete augustoproiete added the hacktoberfest https://hacktoberfest.digitalocean.com label Oct 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers hacktoberfest https://hacktoberfest.digitalocean.com help wanted Extra attention is needed up-for-grabs
Development

No branches or pull requests

1 participant