I have a question about accessing dialogdata from wpf/ I have a ProgressDialog :System.Windows.Window
And I am calling it in OnButtonClick like this:
void OnButtonClick(object sender, RoutedEventArgs e)
{
ProgressDialog dlg = new ProgressDialog("");
//dlg.AutoIncrementInterval = 0;
LibWrap lwrap = new LibWrap();
DoWorkEventHandler handler = delegate { BitmapFrame bf = lwrap.engine(frame); };
dlg.CurrentLibWrap = lwrap;
dlg.AutoIncrementInterval = 100;
dlg.IsCancellingEnabled = true;
dlg.Owner = Application.Current.MainWindow;
dlg.RunWorkerThread(0, handler);
}
The question is - how to check in this function(OnButtonClick) if the DialogResult is OK (in other words - how to access dlg's inner fields after it finish execution)?