-
Notifications
You must be signed in to change notification settings - Fork 985
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
Introduce PopupAsync on UserControl/Form #5918
Comments
Locked this for now, since the concept is still work in progress. |
Unlocked. Let's go from here. |
Is this popup intended to be a "layer" (with a mask) on top of the owner form / control ? Or an independent "window" ? The popup used on windows is a real window, which seems to capture the focus and is dismissed automatically when clicking anywhere outside. It can expand outside the app boundaries. |
In my mind: The latter. 😄 Sorry for the late response. |
Why does this use async/await function call? What would be the difference if it didn't? |
Rationale
Since Windows 8, Windows introduced a popup-like Dialog for imfo messages or short input actions, which gets dismissed just by clicking next to the Dialog. With that, it has a classic popup (menu) behavior.
Like this:
Currently, there are no means to utilize these kinds of Dialogs in WinForms. Together with #5917 and #4631, this API is not only an important extension for programming with the typical .NET async/await pattern - it also solves 2 requirements in modern, desktop UI design:
Proposed APIs:
To show a UserControl in a popup-like Dialog style.
To show a UserControl as a real popup to a parent control (like a TextBox with an attached down button to open the popup context). In this case, we should provide functionality, to attach the popup visually in a meaningful way to the parent control, to give the visual impression of both UI parts as a unit.
The text was updated successfully, but these errors were encountered: