/// <summary> /// Determines whether the specified key is a digit. /// </summary> /// <param name="key">The key.</param> /// <returns> /// <c>true</c> if the specified key is digit; otherwise, <c>false</c>. /// </returns> private bool IsDigit(Key key) { bool isDigit; bool isShiftKey = KeyboardHelper.AreKeyboardModifiersPressed(ModifierKeys.Shift); if (key >= Key.D0 && key <= Key.D9 && !isShiftKey) { isDigit = true; } else { isDigit = key >= Key.NumPad0 && key <= Key.NumPad9; } return(isDigit); }
public global::Windows.UI.Core.CoreVirtualKeyStates GetKeyState(global::Windows.System.VirtualKey virtualKey) { throw new global::System.NotImplementedException("The member CoreVirtualKeyStates CoreWindow.GetKeyState(VirtualKey virtualKey) is not implemented in Uno."); }
/// <summary> /// Initializes a new instance of the <see cref="InputGesture" /> class. /// </summary> /// <param name="key">The key.</param> /// <param name="modifiers">The modifiers.</param> public InputGesture(Key key, ModifierKeys modifiers) { Key = key; Modifiers = modifiers; }
/// <summary> /// Initializes a new instance of the <see cref="InputGesture" /> class. /// </summary> /// <param name="key">The key.</param> public InputGesture(Key key) : this(key, ModifierKeys.None) { }
public void SetColorsForKey(global::Windows.UI.Color desiredColor, global::Windows.System.VirtualKey key) { global::Windows.Foundation.Metadata.ApiInformation.TryRaiseNotImplemented("Windows.Devices.Lights.LampArray", "void LampArray.SetColorsForKey(Color desiredColor, VirtualKey key)"); }
public int[] GetIndicesForKey(global::Windows.System.VirtualKey key) { throw new global::System.NotImplementedException("The member int[] LampArray.GetIndicesForKey(VirtualKey key) is not implemented in Uno."); }
public global::Windows.UI.Core.CoreVirtualKeyStates GetKeyState(global::Windows.System.VirtualKey virtualKey) { return(CoreVirtualKeyStates.None); }