Advertisement

05.27.2008 at 04:24PM PDT, ID: 23436665
[x]
Attachment Details

XAML TreeView focus issue

Asked by msg1234 in Visual Studio 2008, Microsoft Visual C#.Net, .NET Framework 3.x versions

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
[+][-]05.27.2008 at 04:32PM PDT, ID: 21656530

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Visual Studio 2008, Microsoft Visual C#.Net, .NET Framework 3.x versions
Sign Up Now!
Solution Provided By: msg1234
Participating Experts: 0
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628