Hi.
I am trying to call a XMAL Window from a selection in my WPF MenuItem. I do so with a sub that has a "WINDOWNAME.ShowDialog()" statement. So far, each time I do, the Window I call displays twice (only once when I do this from a button).
I tried a flag to test to see if the Window is open or closed and that made it appear only once, but when I called the window from the MenuItem again, it no longer appeared.
I did read one Internet reply to this problem that this is a natural, expected occurrence due to The Tree Structure (which I have just a little understanding of).
How do I stop a Window called from a menu appearing twice and make it appear only once each time I select it from the MenuItem? Is there a workaround if not natural?
Thanks.