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

[Window] Expose Window.DialogResult as a property #17691

Open
rabbitism opened this issue Dec 4, 2024 · 0 comments
Open

[Window] Expose Window.DialogResult as a property #17691

rabbitism opened this issue Dec 4, 2024 · 0 comments

Comments

@rabbitism
Copy link
Contributor

Is your feature request related to a problem? Please describe.

Both WinForm and WPF expose DialogResult as a public property, user can set it in advance instead of relying on Close(object result) method.
This will allow windows return a proper result even close from CaptionButtons.

Describe the solution you'd like

Expose DialogResult as a public property, if user close it directly with close method or from UI CaptionButtons, it returns this result. If User call Close(result), the result will be automatically assigned to this property and return.

Describe alternatives you've considered

No

Additional context

No response

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

No branches or pull requests

1 participant