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?
No files are attached