private bool PageHasChildren(BackstageViewItem parent) { // check for children foreach (BackstageViewItem child in _items) { if (child.GetType() == typeof(BackstageViewPage)) { if (((BackstageViewPage)child).Parent == parent) { return(true); } } } return(false); }
private bool PageHasChildren(BackstageViewItem parent) { // check for children foreach (BackstageViewItem child in _items) { if (child.GetType() == typeof(BackstageViewPage)) { if (((BackstageViewPage)child).Parent == parent) { return true; } } } return false; }