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
privatevoidButton_Click(object?sender,RoutedEventArgse){varbox=MessageBoxManager.GetMessageBoxStandard("Caption","Are you sure you would like to delete appender_replace_page_1?",ButtonEnum.YesNo);_=box.ShowAsync().Result;// <- Issue}
Issue:
When the button is clicked, the application thread gets blocked.
Observed Behavior:
The message box becomes unresponsive.
The main window also becomes unclickable.
The application is effectively frozen.
Using async with await seems to resolve the problem
privateasyncvoidButton_PlayStopClick(object?sender,RoutedEventArgse){varbox=MessageBoxManager.GetMessageBoxStandard("Caption","Are you sure you would like to delete appender_replace_page_1?",ButtonEnum.YesNo);_=awaitbox.ShowAsync();}
it seem that loop
The text was updated successfully, but these errors were encountered: