I have a treeview that contains many UIElements. Some of the UIElements have event handlers to detect if parts of them are double clicked, which in turn open a Windows via the .Show() method. However, when doing this the treeview seems to steal focus back to it (and the main window) and hides the newly created window behind the application, while highliting the current node in treeview. The user can then either alt-tab or similiar to access the new window. How do I prevent the treeview from stealing focus on a double click?
Start Free Trial