Esempio n. 1
0
        /// <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);
        }
Esempio n. 2
0
 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.");
 }
Esempio n. 3
0
 /// <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;
 }
Esempio n. 4
0
 /// <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)
 {
 }
Esempio n. 5
0
 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)");
 }
Esempio n. 6
0
 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.");
 }
Esempio n. 7
0
 /// <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;
 }
Esempio n. 8
0
 /// <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)
 {
 }
Esempio n. 9
0
 public global::Windows.UI.Core.CoreVirtualKeyStates GetKeyState(global::Windows.System.VirtualKey virtualKey)
 {
     return(CoreVirtualKeyStates.None);
 }