You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Overriding OnButtonClick() in the WPFUI MessageBox doesn't allow me to just call Close(), throwing an InvalidOperationException asking me to use the version with MessageBoxResult.
Which would be fine... if that method existed? MessageBox doesn't seem to have a Close(MessageBoxResult) method implemented, instead relying on the WPF Close() internally.
To Reproduce
Try subclassing MessageBox and overriding OnButtonClick()
Expected behavior
Being able to Close() the popup myself without having to downcast to Window
Describe the bug
Overriding
OnButtonClick()
in the WPFUI MessageBox doesn't allow me to just callClose()
, throwing an InvalidOperationException asking me to use the version with MessageBoxResult.Which would be fine... if that method existed?
MessageBox
doesn't seem to have aClose(MessageBoxResult)
method implemented, instead relying on the WPFClose()
internally.To Reproduce
Try subclassing
MessageBox
and overridingOnButtonClick()
Expected behavior
Being able to Close() the popup myself without having to downcast to
Window
Screenshots
No response
OS version
Irrelevant
.NET version
Irrelevant
WPF-UI NuGet version
3.0.3
Additional context
wpfui/src/Wpf.Ui/Controls/MessageBox/MessageBox.cs
Line 302 in bf3c4a6
https://github.com/lepoco/wpfui/blob/development/src/Wpf.Ui/Controls/MessageBox/MessageBox.cs#L302
The text was updated successfully, but these errors were encountered: