Does the constructor of PleaseWaitDialog ever get hit? What does InitializeDialog do internally? Are you sure it's not because you're doing the long running operation, is that operation threaded?
On Wed, Apr 6, 2011 at 1:44 PM, Peter Maddin <[email protected]> wrote: > I need to display a small wpf windows that shows a progress bar while > parsing an xml file and using this to add content to a flowdocument. > > > > This is done from within a user control. > > > > The dialog sets DialogResult to true if it works or false if an exception > occurs. > > > > The dialog is working except it is never displayed. > > > > What does one need to do so that it is displayed. > > > > Code > > > > if (LogFilePath != null) > > { > > if (parentWindow != null) > > { > > var processingDialog = new PleaseWaitDialog(); > > processingDialog.Owner = parentWindow; > > processingDialog.LogFilePath = LogFilePath + "\\" + logFile; > > processingDialog.IsForPrinter = false; > > processingDialog.IntializeDialog(); > > if (processingDialog.ShowDialog() == true) > > { > > logDocumentUserControl.logFlowDocumentViewer.Document = processingDialog.LogDocument; > > } > > } > > } > > > > While it functions, nothing is shown. > > > > Any clues as to what to do? > > > > Also the loaded event in my dialog window is never triggered. > > > > (Also posted to the WPF list which is as not active as this one) > > > > > > Regards Peter Maddin > Applications Development Officer > PathWest Laboratory Medicine WA > Phone : +618 6396 4285 > Mobile: 0414 240 307 > E-Mail : [email protected]; [email protected] > The contents of this e-mail transmission outside of the WAGHS network are > intended solely for the named recipient's), may be confidential, and may be > privileged or otherwise protected from disclosure in the public interest. > The use, reproduction, disclosure or distribution of the contents of this > e-mail transmission by any person other than the named recipient(s) is > prohibited. If you are not a named recipient please notify the sender > immediately. > > > >
