private void LoadInheritNodes(AdaptivVieweNode beLoad, AdaptivVieweNode node) { if (beLoad != node) { InheritFromCollection.Add(node); foreach (var item in node.Children) { LoadInheritNodes(beLoad, item); } } }
/// <summary> /// load nodes that current selected node can inherit form /// </summary> private void LoadInherit() { InheritFromCollection.Clear(); LoadInheritNodes(selectValue, RootNode); }