in the code below. I show information about my application if there is something that has not been installed (... in one of the classes or methods) a window with the current message that is missing is correctly displayed.
there is only one problem, I’m wondering how and how to do it, the application is frozen during debugging, so I can’t move the window or click on it,
is there any workaround that you think of , could i apply?
void SomeMainThreadMethod()
{
new System.Threading.Thread(() => ProcessSomeLongRunningTask()).Start();
}
//then from another helper class
void ProcessSomeLongRunningTask()
{
Application.Current.Dispatcher.Invoke(new Action(() =>CustomW.MsgBoxShow(" Title ", "Msg")), System.Windows.Threading.DispatcherPriority.Normal);
}
source
share