23 references to PreviewKeyDownEvent
PresentationCore (20)
Core\CSharp\System\Windows\Generated\ContentElement.cs (3)
1697public static readonly RoutedEvent PreviewKeyDownEvent = Keyboard.PreviewKeyDownEvent.AddOwner(_typeofThis); 1704add { AddHandler(Keyboard.PreviewKeyDownEvent, value, false); } 1705remove { RemoveHandler(Keyboard.PreviewKeyDownEvent, value); }
Core\CSharp\System\Windows\Generated\UIElement.cs (4)
848EventManager.RegisterClassHandler(type, Keyboard.PreviewKeyDownEvent, new KeyEventHandler(UIElement.OnPreviewKeyDownThunk), false); 3975public static readonly RoutedEvent PreviewKeyDownEvent = Keyboard.PreviewKeyDownEvent.AddOwner(_typeofThis); 3982add { AddHandler(Keyboard.PreviewKeyDownEvent, value, false); } 3983remove { RemoveHandler(Keyboard.PreviewKeyDownEvent, value); }
Core\CSharp\System\Windows\Generated\UIElement3D.cs (3)
1403public static readonly RoutedEvent PreviewKeyDownEvent = Keyboard.PreviewKeyDownEvent.AddOwner(_typeofThis); 1410add { AddHandler(Keyboard.PreviewKeyDownEvent, value, false); } 1411remove { RemoveHandler(Keyboard.PreviewKeyDownEvent, value); }
Core\CSharp\System\Windows\Input\Keyboard.cs (2)
33UIElement.AddHandler(element, PreviewKeyDownEvent, handler); 43UIElement.RemoveHandler(element, PreviewKeyDownEvent, handler);
Core\CSharp\System\Windows\Input\KeyboardDevice.cs (3)
848if(e.StagingItem.Input.RoutedEvent == Keyboard.PreviewKeyDownEvent) 893if(e.StagingItem.Input.RoutedEvent == Keyboard.PreviewKeyDownEvent) 1026previewKeyDown.RoutedEvent=Keyboard.PreviewKeyDownEvent;
Core\CSharp\System\Windows\Input\TextCompositionManager.cs (1)
594if (e.StagingItem.Input.RoutedEvent == Keyboard.PreviewKeyDownEvent)
Core\CSharp\System\Windows\Input\TextServicesManager.cs (3)
138if(e.StagingItem.Input.RoutedEvent != Keyboard.PreviewKeyDownEvent && 200if(e.StagingItem.Input.RoutedEvent == Keyboard.PreviewKeyDownEvent || 265if (keyArgs.RoutedEvent == Keyboard.PreviewKeyDownEvent/*keyArgs.IsDown*/)
Core\CSharp\System\Windows\Interop\HwndSource.cs (1)
2714keyPreviewEvent = Keyboard.PreviewKeyDownEvent;
PresentationFramework (3)
src\Framework\System\Windows\Controls\DataGridHyperlinkColumn.cs (1)
295Debug.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.");
src\Framework\System\Windows\Controls\DataGridTextColumn.cs (1)
273Debug.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.");
src\Framework\System\windows\Documents\TextEditorTyping.cs (1)
67EventManager.RegisterClassHandler(controlType, Keyboard.PreviewKeyDownEvent, new KeyEventHandler(OnPreviewKeyDown));