public static async Task ConfigPrefferedHotkeyAsync(string name, Hotkey hotkey) { await ApplicationData.Current.LocalSettings.SaveAsync(name, hotkey); }
public HotkeyEventArg(Hotkey hotkey) { Hotkey = hotkey ?? throw new ArgumentNullException(nameof(hotkey)); }