views:

681

answers:

1

I need to distinct the action in BeforeExpand event of TreeView. The problem is that the DoubleClick event is lunched after BeforeExpand event.

When user double clicks the tree node the DoubleClick event is fired - which is ok, but the node is expanded/collapsed. I'd like to limit that the user needs to click '+' to expand the node and block the expand/collapse on double click - is this even possible? The TreeViewCancelEventArgs isn't much of a help since there is no information on how the node is expanded...