I have a help window in my application that can be opened at any time in the application. The main window of my application is a wizard window that opens modal dialogues and also the aforementioned non-modal help window. It should be possible to keep the help window open and accessible as long as the user needs help - from the wizard and from any modal dialog opened by the wizard.
When opening the help window in the main window first and opening a modal dialog afterwards, the help window behaves like it is owned by the main window and on the same hierarchy level - it is getting disabled. When opening the help window in the modal dialog first and closing the modal dialog afterwards, the help window is enabled in the main window. So it seems the help window is always getting tied to the currently modal dialog somehow, but is still accessible from any modal parent windows.
I've managed to resolve the problem by hiding and re-show the help window as soon as a modal dialog opens. Are there any other solutions to keep the help window enabled when opening a modal dialog? The TopMost property had no effect on the behavior.
I guess this is a general modal dialog behavior in Windows, but I'm currently using WPF for my application.
Thanks in advance for your input!
P