public void OnShortcutChanged(IShortcutChangedArgs args) { if (args is GlobalRebuildShortcutChangedArgs || (args is BringPanelIntoViewShortcutChangedArgs panelShortcutChangedArgs && panelShortcutChangedArgs.PanelDefinition == PanelDefinition)) { RaisePropertyChanged(() => Shortcut); } }
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); }