//public Func<string, RoutedEventHandler> GetMethodFunction { get; private set; } //public Func<string, MenuItem> GetMenuFunction { get; private set; } private void Master_ShortcutRegistered(object sender, KeyboardShortcutEventArgs e) { KeyboardShortcut kc = e.KeyboardShortcut; try { RegisterKeyShortcut(kc); } catch (ArgumentOutOfRangeException) { } }
private void Master_ShortcutUnregistered(object sender, KeyboardShortcutEventArgs e) { UnregisterKeyShortcut(e.KeyboardShortcut); }