Beispiel #1
0
        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);
        }
Beispiel #2
0
        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;
        }