Hello Anders,
In your case it is best to use the
MouseLeftButtonDownEvent but check the
OriginalSource of the event. If it has a parent of type
RadTreeViewItem then the event is fired after clicking an item, but if the original source of the event isn't a
RadTreeViewItem element, then the click is somewhere in the
RadTreeView but outside an item.
I modified the solution to illustrate this approach. Please have a look at it and let em know if it works for you.
All the best,
Tina Stancheva
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>