selection logic cannot be controlled via the Focusable
property. With this property you can disable the Focused
visual state of the items but not the selected state.
In order to deny a RadTreeViewItem
selection you have to:
- either bind its IsSelected property and through your ViewModels logic evaluate its value and make sure it doesn't get set to True until the previous steps are implemented
- or handle the PreviewSelectionChanged event every time that the previous steps aren't implemented. As soon as the Handled property of the event args of the event is set to True, the selection operation is reverted.
If you can elaborate further on your original implementation or send over a sample that demonstrates your original approach, we can modify it (prepare a new sample) to demonstrate one or both of the suggested approaches.
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>