Here is what I am trying to achieve with tristate TreeView:
1. User unchecks an item from tree
2. Before the item gets really unchecked from tree, I need to put a validation
3. If item passes this validation, it should be unchecked. Else the uncheck event needs to be canceled and item should remain checked.
I tried setting e.Handled in PreviewUnchecked which is not working. The item gets already unchecked.
Any ideas how this can be achieved?
1. User unchecks an item from tree
2. Before the item gets really unchecked from tree, I need to put a validation
3. If item passes this validation, it should be unchecked. Else the uncheck event needs to be canceled and item should remain checked.
I tried setting e.Handled in PreviewUnchecked which is not working. The item gets already unchecked.
Any ideas how this can be achieved?