This project has moved. For the latest updates, please go here.


Ability to cancel TreeViewItem selection?


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 5:10 AM by jeffwilcox
Closing; unfortunately this component moved into the Silverlight SDK; Silverlight bugs outside the toolkit are not tracked on this site.


ivanpelly wrote Nov 16, 2010 at 4: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.

wrote Aug 15, 2011 at 5:10 AM

wrote Feb 22, 2013 at 1:54 AM

wrote May 16, 2013 at 12:36 PM