public ShellView(IShell shell, IAppConfiguration configs, ICharacterNavigator navigator, IUndoService undoService)
 {
     InitializeComponent();
     this.CommandBindings.Add(new CommandBinding(FontCommands.NavigateBackward, NavigateBackward_Execute, NavigateBackward_CanExecute));
     this.CommandBindings.Add(new CommandBinding(FontCommands.NavigateForward, NavigateForward_Execute, NavigateForward_CanExecute));
     this.CommandBindings.Add(new CommandBinding(FontCommands.Undo, Undo_Execute, Undo_CanExecute));
     this.CommandBindings.Add(new CommandBinding(FontCommands.Redo, Redo_Execute, Redo_CanExecute));
     ApplicationService.SetShell(this, shell);
     ApplicationService.SetConfigs(this, configs);
     ApplicationService.SetCharacterNavigator(this, navigator);
     ApplicationService.SetUndoService(this, undoService);
 }
Exemple #2
0
 public static void SetCharacterNavigator(DependencyObject d, ICharacterNavigator value)
 {
     d.SetValue(CharacterNavigatorProperty, value);
 }