Example #1
0
        FullScreenInit(IAppWindow appWindow, IFileTreeView fileTreeView)
        {
            var fullScreenCommand = new FullScreenCommand(appWindow);

            appWindow.MainWindowCommands.Add(MetroWindow.FullScreenCommand, (s, e) => fullScreenCommand.FullScreen(), (s, e) => e.CanExecute           = true, ModifierKeys.Shift | ModifierKeys.Alt, Key.Enter);
            appWindow.MainWindowCommands.Add(CollapseUnusedNodesCommand, (s, e) => fileTreeView.TreeView.CollapseUnusedNodes(), (s, e) => e.CanExecute = true, ModifierKeys.Control | ModifierKeys.Shift, Key.W);
        }
Example #2
0
 FullScreenInit(IAppWindow appWindow, IFileTreeView fileTreeView)
 {
     var fullScreenCommand = new FullScreenCommand(appWindow);
     appWindow.MainWindowCommands.Add(MetroWindow.FullScreenCommand, (s, e) => fullScreenCommand.FullScreen(), (s, e) => e.CanExecute = true, ModifierKeys.Shift | ModifierKeys.Alt, Key.Enter);
     appWindow.MainWindowCommands.Add(CollapseUnusedNodesCommand, (s, e) => fileTreeView.TreeView.CollapseUnusedNodes(), (s, e) => e.CanExecute = true, ModifierKeys.Control | ModifierKeys.Shift, Key.W);
 }
Example #3
0
 FullScreenInit(IAppWindow appWindow)
 {
     this.fullScreenCommand = new FullScreenCommand(appWindow);
     appWindow.MainWindowCommands.Add(MetroWindow.FullScreenCommand, (s, e) => fullScreenCommand.FullScreen(), (s, e) => e.CanExecute = true, ModifierKeys.Shift | ModifierKeys.Alt, Key.Enter);
 }
Example #4
0
 FullScreenInit(IAppWindow appWindow)
 {
     this.fullScreenCommand = new FullScreenCommand(appWindow);
     appWindow.MainWindowCommands.Add(MetroWindow.FullScreenCommand, (s, e) => fullScreenCommand.FullScreen(), (s, e) => e.CanExecute = true, ModifierKeys.Shift | ModifierKeys.Alt, Key.Enter);
 }