8

Closed

Ability to cancel TreeViewItem selection?

description

Is it possible to somehow (through an event handler or some other means) to cancel a TreeViewItem selection (keyboard or mouse) so that the selection will not be completed? That is, the selection will be aborted. Something like a PreUnSelect event that will fire on a TreeViewItem that passes an event argument through which the selection can be cancelled if desired. The need is to restrict the user's navigation in the tree according to program logic. Of course other means will be used to explain to the user why their navigation was not allowed.
 
If this is not possible I would like to propose it although I know the TreeView is mostly baked at this point. What are the chances?
Closed Aug 15, 2011 at 6:10 AM by jeffwilcox
Closing; unfortunately this component moved into the Silverlight SDK; Silverlight bugs outside the toolkit are not tracked on this site.

comments

ivanpelly wrote Nov 16, 2010 at 5:45 PM

This would be a great feature to have... programmatically attemting the same is convoluted and error-prone. An "e.Cancel = True" would be fanastic.