public void ExpandParents(IBaseNode baseNode) { foreach (var parent in baseNode.GetParentNodes()) { parent.IsExpanded = true; } }