private void ExpandParent(PathItemViewModel pathItemViewModel) { if (pathItemViewModel.Parent == null) { return; } pathItemViewModel.Parent.IsExpanded = true; ExpandParent(pathItemViewModel.Parent); }
private void ExpandParent(PathItemViewModel pathItemViewModel) { if (pathItemViewModel.Parent == null) { return; } pathItemViewModel.Parent.IsExpanded = true; ExpandParent(pathItemViewModel.Parent); }
public void AddChild(PathItemViewModel pathItemViewModel) { pathItemViewModel.Parent = this; Children.Add(pathItemViewModel); ExpandParent(pathItemViewModel); }
public void AddChild(PathItemViewModel pathItemViewModel) { pathItemViewModel.Parent = this; Children.Add(pathItemViewModel); ExpandParent(pathItemViewModel); }