Skip to content
This repository has been archived by the owner on Sep 2, 2021. It is now read-only.

Exception on ModernDialog show #174

Open
AlePinRod opened this issue Feb 5, 2018 · 0 comments
Open

Exception on ModernDialog show #174

AlePinRod opened this issue Feb 5, 2018 · 0 comments

Comments

@AlePinRod
Copy link

FirstFloor.ModernUI.Windows.Controls.ModernDialog dlg = new FirstFloor.ModernUI.Windows.Controls.ModernDialog() {
	Title = "DIALOG",
	Content = "Test dialog",
};
dlg.CancelButton.Content = "Cancel";
dlg.Buttons = new Button[] { dlg.CancelButton };
dlg.Show();

When I close the dialog, it throws the following error:

System.InvalidOperationException: 'DialogResult can only be set after having created the Window and once displayed as a dialog box.'

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant