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
please add Task event to controls #9045
Comments
This would be a significant breaking change on several levels, existing code would no longer compile, the events would have different signature and the behavior would change (e.g. exception handling). The only way to solve this in backwards compatible way that comes to my mind is to duplicate all the events with their async counterparts, e.g. have ClickAsync etc. Even then, you might need to deal with events being fired before other events finished. I don't say it often, but I suggest to see how this is resolved in Winforms first. Relevant discussion: dotnet/winforms#6478 |
@miloush thanks for the redirection to winform similar issues. Is there a already WPF progress issue for tracking this? I think WPF guys also want the async control event. |
It is not really a WPF specific problem, but no, I think this is the first issue in this repo that can be used to track it. Would you mind sharing why |
No, I am doing WPF mainly with I am doing some research with Blazor these days. I think the OnInitialized/OnInitializedAsync like method is more convenient than WPF when invoking event handler in code behind. |
It's 2024 now... Please don't let the button.click event to handle async/await task with
async void
signature.The text was updated successfully, but these errors were encountered: