示例#1
0
        public SaveActiveFileCommandDefinition(IDockingHostViewModel dockingHostViewModel)
        {
            DefaultKeyGestures  = new [] { new MultiKeyGesture(Key.S, ModifierKeys.Control) };
            DefaultGestureScope = GestureScopes.GlobalGestureScope;

            dockingHostViewModel.ActiveLayoutItemChanged += _dockingHostViewModel_ActiveLayoutItemChanged;
        }
示例#2
0
 public void Initialize()
 {
     _dockingHostViewModel = IoC.Get <IDockingHostViewModel>();
     if (_dockingHostViewModel is ViewAware va)
     {
         va.ViewAttached += Va_ViewAttached;
     }
 }
示例#3
0
 public void Activate(IDockingHostViewModel shell)
 {
     shell?.OpenLayoutItem(IoC.Get <WaitingDialogDemoViewModel>());
 }
示例#4
0
 public SwitchToDocumentListCommandHandler(IDockingHostViewModel shell)
 {
     _shell = shell;
 }
示例#5
0
 public OpenContainingFolderCommand(IDockingHostViewModel dockingHostViewModel)
 {
     _dockingHostViewModel = dockingHostViewModel;
 }
示例#6
0
 public void Activate(IDockingHostViewModel shell)
 {
     shell?.OpenLayoutItem(IoC.Get <InfoBarDemoViewModel>());
 }
示例#7
0
 private FileService(IDockingHostViewModel shell)
 {
     _shell = shell;
 }
示例#8
0
 public void Activate(IDockingHostViewModel shell)
 {
     shell?.ShowTool <TriggerUiContextViewModel>();
 }
示例#9
0
 public void Activate(IDockingHostViewModel shell)
 {
     shell?.OpenLayoutItem(IoC.Get <WindowProfileChangeViewModel>());
 }
示例#10
0
 public void Activate(IDockingHostViewModel shell)
 {
     shell?.ShowTool <ToolSearchExampleViewModel>();
 }
示例#11
0
 public void Activate(IDockingHostViewModel shell)
 {
     shell?.ShowTool <TextStackClipboardToolViewModel>();
 }
示例#12
0
 public void Activate(IDockingHostViewModel shell)
 {
     shell?.OpenLayoutItem(IoC.Get <UndoRedoViewModel>());
 }
示例#13
0
 public SaveAllCommand(IDockingHostViewModel dockingHostViewModel)
 {
     _dockingHostViewModel = dockingHostViewModel;
 }
示例#14
0
 public void Activate(IDockingHostViewModel shell)
 {
     shell?.ShowTool <BallonTooltipViewModel>();
 }
示例#15
0
 public SaveActiveFileAsCommand(IDockingHostViewModel dockingHostViewModel)
 {
     _dockingHostViewModel = dockingHostViewModel;
 }
示例#16
0
 public SaveActiveFileAsCommandDefinition(IDockingHostViewModel dockingHostViewModel)
 {
     dockingHostViewModel.ActiveLayoutItemChanged += _dockingHostViewModel_ActiveLayoutItemChanged;
 }
示例#17
0
 public CopyFullPathCommand(IDockingHostViewModel dockingHostViewModel)
 {
     _dockingHostViewModel = dockingHostViewModel;
 }
示例#18
0
 public void Activate(IDockingHostViewModel shell)
 {
     shell.OpenLayoutItem(IoC.Get <GraphViewModel>());
 }
示例#19
0
 public OpenToolboxCommand(IDockingHostViewModel hostViewModel)
 {
     _hostViewModel = hostViewModel;
 }
示例#20
0
 public InfoBarDemoViewModel(IDockingHostViewModel dockingHost, IDockingMainWindowViewModel mainWindow)
 {
     _dockingHost = dockingHost;
     _mainWindow  = mainWindow;
     DisplayName  = "Info Bar Demo";
 }