Пример #1
0
 public void OnShortcutChanged(IShortcutChangedArgs args)
 {
     if (args is GlobalRebuildShortcutChangedArgs ||
         (args is BringPanelIntoViewShortcutChangedArgs panelShortcutChangedArgs && panelShortcutChangedArgs.PanelDefinition == PanelDefinition))
     {
         RaisePropertyChanged(() => Shortcut);
     }
 }
Пример #2
0
        public void OnShortcutChanged(IShortcutChangedArgs args)
        {
            if (args is GlobalCommandShortcutChangedArgs)
            {
                GlobalCommandShortcuts = GetCommandShortcuts();
            }
            else if (args is BringPanelIntoViewShortcutChangedArgs)
            {
                BringPanelIntoViewShortcuts = GetBringPanelIntoViewShortcuts();
            }
            else if (args is GlobalRebuildShortcutChangedArgs)
            {
                GlobalCommandShortcuts      = GetCommandShortcuts();
                BringPanelIntoViewShortcuts = GetBringPanelIntoViewShortcuts();
            }

            RaisePropertyChanged(() => Shortcuts);
        }