List <CommandViewModel> CreateToolbarCommands()
        {
            var newProjectRelayCommand = DelegateCommandFactory.Create <object>(OnNewFileExecuted);
            var addNewItemRelayCommand = DelegateCommandFactory.Create <object>(OnNewFileExecuted);
            var openRelayCommand       = DelegateCommandFactory.Create <object>(OnNewFileExecuted);

            CommandViewModel newProject = new CommandViewModel("New Project", newProjectRelayCommand)
            {
                Glyph = GlyphHelper.GetGlyph("/Images/VS2010Docking/NewProject_16x16.png"), KeyGesture = KeyGestureHelper.GetKeyGesure(Key.N, ModifierKeys.Control | ModifierKeys.Shift)
            };
            CommandViewModel newFile = new CommandViewModel("Add New Item", addNewItemRelayCommand)
            {
                Glyph = GlyphHelper.GetGlyph("/Images/VS2010Docking/File_16x16.png"), KeyGesture = KeyGestureHelper.GetKeyGesure(Key.N, ModifierKeys.Control)
            };
            CommandViewModel openFile = new CommandViewModel("Open File", openRelayCommand)
            {
                Glyph = GlyphHelper.GetGlyph("/Images/VS2010Docking/OpenFile_16x16.png"), KeyGesture = KeyGestureHelper.GetKeyGesure(Key.O, ModifierKeys.Control)
            };

            CommandViewModel save = new CommandViewModel("Save")
            {
                Glyph = GlyphHelper.GetGlyph("/Images/VS2010Docking/Save_16x16.png"), KeyGesture = KeyGestureHelper.GetKeyGesure(Key.S, ModifierKeys.Control)
            };
            CommandViewModel saveAll = new CommandViewModel("Save All")
            {
                Glyph = GlyphHelper.GetGlyph("/Images/VS2010Docking/SaveAll_16x16.png"), KeyGesture = KeyGestureHelper.GetKeyGesure(Key.S, ModifierKeys.Control | ModifierKeys.Shift)
            };

            CommandViewModel cut = new CommandViewModel("Cut")
            {
                Glyph = GlyphHelper.GetGlyph("/Images/VS2010Docking/Cut_16x16.png"), KeyGesture = KeyGestureHelper.GetKeyGesure(Key.S, ModifierKeys.Control | ModifierKeys.Shift)
            };
            CommandViewModel copy = new CommandViewModel("Copy")
            {
                Glyph = GlyphHelper.GetGlyph("/Images/VS2010Docking/Copy_16x16.png"), KeyGesture = KeyGestureHelper.GetKeyGesure(Key.S, ModifierKeys.Control | ModifierKeys.Shift)
            };
            CommandViewModel paste = new CommandViewModel("Paste")
            {
                Glyph = GlyphHelper.GetGlyph("/Images/VS2010Docking/Paste_16x16.png"), KeyGesture = KeyGestureHelper.GetKeyGesure(Key.S, ModifierKeys.Control | ModifierKeys.Shift)
            };

            CommandViewModel undo = new CommandViewModel("Undo")
            {
                Glyph = GlyphHelper.GetGlyph("/Images/VS2010Docking/Undo_16x16.png"), KeyGesture = KeyGestureHelper.GetKeyGesure(Key.S, ModifierKeys.Control | ModifierKeys.Shift)
            };
            CommandViewModel redo = new CommandViewModel("Redo")
            {
                Glyph = GlyphHelper.GetGlyph("/Images/VS2010Docking/Redo_16x16.png"), KeyGesture = KeyGestureHelper.GetKeyGesure(Key.S, ModifierKeys.Control | ModifierKeys.Shift)
            };

            return(new List <CommandViewModel>()
            {
                newProject, newFile, openFile, save, saveAll, GetSeparator(), cut, copy, paste, GetSeparator(), undo, redo
            });
        }
        protected virtual List <CommandViewModel> CreateFileCommands()
        {
            var openDocumentRelayCommand  = DelegateCommandFactory.Create <object>(OnOpenDocument);
            CommandViewModel openDocument = new CommandViewModel("Open...", openDocumentRelayCommand)
            {
                Glyph = GlyphHelper.GetGlyph("/Images/Open_16x16.png"), IsEnabled = true
            };

            return(new List <CommandViewModel>()
            {
                openDocument
            });
        }
        protected override List <CommandViewModel> CreateFileCommands()
        {
            var projectRelayCommand   = DelegateCommandFactory.Create <object>(OnNewFileExecuted);
            var fileRelayCommand      = DelegateCommandFactory.Create <object>(OnNewFileExecuted);
            var fileOpenRelayCommand  = DelegateCommandFactory.Create <object>(OnNewFileExecuted);
            var closeFileRelayCommand = DelegateCommandFactory.Create <object>(OnCloseFileExecuted);

            CommandViewModel newCommand = new CommandViewModel("New")
            {
                IsSubItem = true
            };
            CommandViewModel newProject = new CommandViewModel("Project...", projectRelayCommand)
            {
                Glyph = GlyphHelper.GetGlyph("/Images/VS2010Docking/NewProject_16x16.png"), KeyGesture = KeyGestureHelper.GetKeyGesure(Key.N, ModifierKeys.Control | ModifierKeys.Shift)
            };
            CommandViewModel newFile = new CommandViewModel("File...", fileRelayCommand)
            {
                Glyph = GlyphHelper.GetGlyph("/Images/VS2010Docking/File_16x16.png"), KeyGesture = KeyGestureHelper.GetKeyGesure(Key.N, ModifierKeys.Control)
            };

            newCommand.Commands = new List <CommandViewModel>()
            {
                newProject, newFile
            };

            CommandViewModel openCommand = new CommandViewModel("Open")
            {
                IsSubItem = true,
            };
            CommandViewModel openProject = new CommandViewModel("Project/Solution...")
            {
                Glyph = GlyphHelper.GetGlyph("/Images/VS2010Docking/OpenSolution_16x16.png"), KeyGesture = KeyGestureHelper.GetKeyGesure(Key.O, ModifierKeys.Control | ModifierKeys.Shift), IsEnabled = false
            };
            CommandViewModel openFile = new CommandViewModel("File...", fileOpenRelayCommand)
            {
                Glyph = GlyphHelper.GetGlyph("/Images/VS2010Docking/OpenFile_16x16.png"), KeyGesture = KeyGestureHelper.GetKeyGesure(Key.O, ModifierKeys.Control)
            };

            openCommand.Commands = new List <CommandViewModel>()
            {
                openProject, openFile
            };

            CommandViewModel closeFile     = new CommandViewModel("Close", closeFileRelayCommand);
            CommandViewModel closeSolution = new CommandViewModel("Close Solution")
            {
                Glyph = GlyphHelper.GetGlyph("/Images/VS2010Docking/CloseSolution_16x16.png")
            };
            CommandViewModel save = new CommandViewModel("Save")
            {
                Glyph = GlyphHelper.GetGlyph("/Images/VS2010Docking/Save_16x16.png"), KeyGesture = KeyGestureHelper.GetKeyGesure(Key.S, ModifierKeys.Control)
            };
            CommandViewModel saveAll = new CommandViewModel("Save All")
            {
                Glyph = GlyphHelper.GetGlyph("/Images/VS2010Docking/SaveAll_16x16.png"), KeyGesture = KeyGestureHelper.GetKeyGesure(Key.S, ModifierKeys.Control | ModifierKeys.Shift)
            };

            CommandViewModel recentFilesCommand = new CommandViewModel("Recent files")
            {
                IsSubItem = true,
            };
            CommandViewModel recentProjectsCommand = new CommandViewModel("Recent projects and solutions")
            {
                IsSubItem = true,
            };

            return(new List <CommandViewModel>()
            {
                newCommand, openCommand, GetSeparator(), closeFile, closeSolution, GetSeparator(), save,
                saveAll, GetSeparator(), recentFilesCommand, recentProjectsCommand
            });
        }