24 references to PreviewKeyDownEvent
PresentationCore (20)
System\Windows\Generated\ContentElement.cs (3)
1637
public static readonly RoutedEvent PreviewKeyDownEvent = Keyboard.
PreviewKeyDownEvent
.AddOwner(_typeofThis);
1644
add { AddHandler(Keyboard.
PreviewKeyDownEvent
, value, false); }
1645
remove { RemoveHandler(Keyboard.
PreviewKeyDownEvent
, value); }
System\Windows\Generated\UIElement.cs (4)
783
EventManager.RegisterClassHandler(type, Keyboard.
PreviewKeyDownEvent
, new KeyEventHandler(UIElement.OnPreviewKeyDownThunk), false);
3590
public static readonly RoutedEvent PreviewKeyDownEvent = Keyboard.
PreviewKeyDownEvent
.AddOwner(_typeofThis);
3597
add { AddHandler(Keyboard.
PreviewKeyDownEvent
, value, false); }
3598
remove { RemoveHandler(Keyboard.
PreviewKeyDownEvent
, value); }
System\Windows\Generated\UIElement3D.cs (3)
1358
public static readonly RoutedEvent PreviewKeyDownEvent = Keyboard.
PreviewKeyDownEvent
.AddOwner(_typeofThis);
1365
add { AddHandler(Keyboard.
PreviewKeyDownEvent
, value, false); }
1366
remove { RemoveHandler(Keyboard.
PreviewKeyDownEvent
, value); }
System\Windows\Input\Keyboard.cs (2)
36
UIElement.AddHandler(element,
PreviewKeyDownEvent
, handler);
46
UIElement.RemoveHandler(element,
PreviewKeyDownEvent
, handler);
System\Windows\Input\KeyboardDevice.cs (3)
758
if(e.StagingItem.Input.RoutedEvent == Keyboard.
PreviewKeyDownEvent
)
797
if(e.StagingItem.Input.RoutedEvent == Keyboard.
PreviewKeyDownEvent
)
930
previewKeyDown.RoutedEvent=Keyboard.
PreviewKeyDownEvent
;
System\Windows\Input\TextCompositionManager.cs (1)
465
if (e.StagingItem.Input.RoutedEvent == Keyboard.
PreviewKeyDownEvent
)
System\Windows\Input\TextServicesManager.cs (3)
125
if(e.StagingItem.Input.RoutedEvent != Keyboard.
PreviewKeyDownEvent
&&
183
if(e.StagingItem.Input.RoutedEvent == Keyboard.
PreviewKeyDownEvent
||
244
if (keyArgs.RoutedEvent == Keyboard.
PreviewKeyDownEvent
/*keyArgs.IsDown*/)
System\Windows\InterOp\HwndSource.cs (1)
2372
keyPreviewEvent = Keyboard.
PreviewKeyDownEvent
;
PresentationFramework (3)
System\Windows\Controls\DataGridHyperlinkColumn.cs (1)
294
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.");
System\Windows\Controls\DataGridTextColumn.cs (1)
272
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.");
System\windows\Documents\TextEditorTyping.cs (1)
64
EventManager.RegisterClassHandler(controlType, Keyboard.
PreviewKeyDownEvent
, new KeyEventHandler(OnPreviewKeyDown));
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\KeyTipService.cs (1)
708
else if (routedEvent == Keyboard.
PreviewKeyDownEvent
)