private void SetupContextMenuViewModels()
        {
            AddNodeMenuVM.Network = NetworkViewModel;
            AddNodeMenuVM.AddNodeTypes(nodeTemplates);
            AddNodeMenuVM.Commands.Add(new LabeledCommand
            {
                Label   = "Collapse All",
                Command = CollapseAllCommand
            });

            AddNodeForPendingConnectionMenuVM.Network = NetworkViewModel;
            AddNodeForPendingConnectionMenuVM.AddNodeTypes(nodeTemplates);
            NetworkViewModel.OnPendingConnectionDropped = () =>
            {
                var pendingCon = NetworkViewModel.PendingConnection;
                NetworkViewModel.RemovePendingConnection();
                AddNodeForPendingConnectionMenuVM.SearchQuery = "";
                AddNodeForPendingConnectionMenuVM.ShowAddNodeForPendingConnectionMenu(pendingCon);
            };
        }