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