Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
55
Updating xamDataTree checkboxes when not expanded
posted

I have a xamDataTree bound to a ViewModel with nested nodes and checkboxes on all levels of the tree.

The checkbox for the deepest level of nodes is bound to a data member using the "CheckBoxMemberPath" option. This all works fine.

I have a button on the form to check all items.  My code goes through and then toggles the data member which is bound via CheckBoxMemberPath.

This works great, except when the parent nodes are collapsed.  The child nodes are checked, but the parent nodes are not.  If I open the parent nodes and then hit "check all", the parents are then checked/unchecked appropriately.

Any idea what I need to do to have the parent node check state accurately reflect the children's?