24 references to PreviewKeyDownEvent
PresentationCore (20)
System\Windows\Generated\ContentElement.cs (3)
1637public static readonly RoutedEvent PreviewKeyDownEvent = Keyboard.PreviewKeyDownEvent.AddOwner(_typeofThis); 1644add { AddHandler(Keyboard.PreviewKeyDownEvent, value, false); } 1645remove { RemoveHandler(Keyboard.PreviewKeyDownEvent, value); }
System\Windows\Generated\UIElement.cs (4)
783EventManager.RegisterClassHandler(type, Keyboard.PreviewKeyDownEvent, new KeyEventHandler(UIElement.OnPreviewKeyDownThunk), false); 3590public static readonly RoutedEvent PreviewKeyDownEvent = Keyboard.PreviewKeyDownEvent.AddOwner(_typeofThis); 3597add { AddHandler(Keyboard.PreviewKeyDownEvent, value, false); } 3598remove { RemoveHandler(Keyboard.PreviewKeyDownEvent, value); }
System\Windows\Generated\UIElement3D.cs (3)
1358public static readonly RoutedEvent PreviewKeyDownEvent = Keyboard.PreviewKeyDownEvent.AddOwner(_typeofThis); 1365add { AddHandler(Keyboard.PreviewKeyDownEvent, value, false); } 1366remove { RemoveHandler(Keyboard.PreviewKeyDownEvent, value); }
System\Windows\Input\Keyboard.cs (2)
36UIElement.AddHandler(element, PreviewKeyDownEvent, handler); 46UIElement.RemoveHandler(element, PreviewKeyDownEvent, handler);
System\Windows\Input\KeyboardDevice.cs (3)
758if(e.StagingItem.Input.RoutedEvent == Keyboard.PreviewKeyDownEvent) 797if(e.StagingItem.Input.RoutedEvent == Keyboard.PreviewKeyDownEvent) 930previewKeyDown.RoutedEvent=Keyboard.PreviewKeyDownEvent;
System\Windows\Input\TextCompositionManager.cs (1)
465if (e.StagingItem.Input.RoutedEvent == Keyboard.PreviewKeyDownEvent)
System\Windows\Input\TextServicesManager.cs (3)
125if(e.StagingItem.Input.RoutedEvent != Keyboard.PreviewKeyDownEvent && 183if(e.StagingItem.Input.RoutedEvent == Keyboard.PreviewKeyDownEvent || 244if (keyArgs.RoutedEvent == Keyboard.PreviewKeyDownEvent/*keyArgs.IsDown*/)
System\Windows\InterOp\HwndSource.cs (1)
2372keyPreviewEvent = Keyboard.PreviewKeyDownEvent;
PresentationFramework (3)
System\Windows\Controls\DataGridHyperlinkColumn.cs (1)
294Debug.Assert(e.RoutedEvent == Keyboard.PreviewKeyDownEvent, "We should only reach here on the PreviewKeyDown event because the TextBox within is expected to handle the preview event and hence trump the successive KeyDown event.");
System\Windows\Controls\DataGridTextColumn.cs (1)
272Debug.Assert(e.RoutedEvent == Keyboard.PreviewKeyDownEvent, "We should only reach here on the PreviewKeyDown event because the TextBox within is expected to handle the preview event and hence trump the successive KeyDown event.");
System\windows\Documents\TextEditorTyping.cs (1)
64EventManager.RegisterClassHandler(controlType, Keyboard.PreviewKeyDownEvent, new KeyEventHandler(OnPreviewKeyDown));
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\KeyTipService.cs (1)
708else if (routedEvent == Keyboard.PreviewKeyDownEvent)