Inheritance: BaseViewModel
        private void RemoveChildByIdentifier(Guid identifier, MenuItemViewModel root)
        {
            foreach (MenuItemViewModel child in root.Children)
            {
                if (child == null)
                {
                    continue;
                }

                if (child.Identifier == identifier)
                {
                    Children.Remove(child);
                    break;
                }
                RemoveChildByIdentifier(identifier, child);
            }
        }
 private MenuItemViewModel GetItemByName(MenuItemViewModel item, string name)
 {
     foreach (MenuItemViewModel child in item.Children)
     {
         if (child.Name == name)
         {
             return(child);
         }
         else
         {
             MenuItemViewModel found = GetItemByName(child, name);
             if (found == null)
             {
                 continue;
             }
             else
             {
                 return(found);
             }
         }
     }
     return(null);
 }
 public void AddChild(MenuItemViewModel item)
 {
     _Children.Add(item);
 }
        private void RemoveChildByIdentifier(Guid identifier, MenuItemViewModel root)
        {
            foreach (MenuItemViewModel child in root.Children)
            {
                if (child == null)
                {
                    continue;
                }

                if (child.Identifier == identifier)
                {
                    Children.Remove(child);
                    break;
                }
                RemoveChildByIdentifier(identifier, child);
            }
        }
 private MenuItemViewModel GetItemByName(MenuItemViewModel item, string name)
 {
     foreach (MenuItemViewModel child in item.Children)
     {
         if (child.Name == name)
         {
             return child;
         }
         else
         {
             MenuItemViewModel found = GetItemByName(child, name);
             if (found == null)
             {
                 continue;
             }
             else
             {
                 return found;
             }
         }
     }
     return null;
 }
 public void AddChild(MenuItemViewModel item)
 {
     _Children.Add(item);
 }