示例#1
0
        //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)
            {
            }
        }
示例#2
0
 private void Master_ShortcutUnregistered(object sender, KeyboardShortcutEventArgs e)
 {
     UnregisterKeyShortcut(e.KeyboardShortcut);
 }