Exemplo n.º 1
0
        private static void OnCapsModified(object sender, ModifierChangedRoutedEventArgs e)
        {
            var keyboard = (Keyboard)sender;

            keyboard.IsCapsLocked = e.Applied;
            e.Handled             = true;
        }
Exemplo n.º 2
0
        protected override void OnClick()
        {
            var eventArgs = new ModifierChangedRoutedEventArgs(KeyboardKey.CapsModifierChangedProperty, this, !this.IsCapsLocked, true);

            RaiseEvent(eventArgs);
        }
Exemplo n.º 3
0
        protected override void OnClick()
        {
            var eventArgs = new ModifierChangedRoutedEventArgs(KeyboardKey.ShiftModifierChangedProperty, this, !this.IsShifted, IsShiftLocking);

            RaiseEvent(eventArgs);
        }