6 instantiations of KeyEventArgs
PresentationCore (6)
Core\CSharp\System\Windows\Input\KeyboardDevice.cs (4)
922
KeyEventArgs keyDown = new
KeyEventArgs
(this, previewKeyDown.UnsafeInputSource, previewKeyDown.Timestamp, key);
977
KeyEventArgs keyUp = new
KeyEventArgs
(this, previewKeyUp.UnsafeInputSource, previewKeyUp.Timestamp, key);
1018
KeyEventArgs previewKeyDown = new
KeyEventArgs
(this, keyboardInput.InputSource, keyboardInput.Timestamp, key);
1037
KeyEventArgs previewKeyUp = new
KeyEventArgs
(this, keyboardInput.InputSource, keyboardInput.Timestamp, key);
Core\CSharp\System\Windows\Interop\HwndSource.cs (2)
2744
KeyEventArgs tunnelArgs = new
KeyEventArgs
(Keyboard.PrimaryDevice, this, msg.time, key);
2754
KeyEventArgs bubbleArgs = new
KeyEventArgs
(Keyboard.PrimaryDevice, this, msg.time, key);
189 references to KeyEventArgs
PresentationCore (48)
Core\CSharp\System\Windows\Generated\ContentElement.cs (4)
1711
protected internal virtual void OnPreviewKeyDown(
KeyEventArgs
e) {}
1730
protected internal virtual void OnKeyDown(
KeyEventArgs
e) {}
1749
protected internal virtual void OnPreviewKeyUp(
KeyEventArgs
e) {}
1768
protected internal virtual void OnKeyUp(
KeyEventArgs
e) {}
Core\CSharp\System\Windows\Generated\UIElement.cs (8)
2166
private static void OnPreviewKeyDownThunk(object sender,
KeyEventArgs
e)
2195
private static void OnKeyDownThunk(object sender,
KeyEventArgs
e)
2229
private static void OnPreviewKeyUpThunk(object sender,
KeyEventArgs
e)
2258
private static void OnKeyUpThunk(object sender,
KeyEventArgs
e)
3989
protected virtual void OnPreviewKeyDown(
KeyEventArgs
e) {}
4008
protected virtual void OnKeyDown(
KeyEventArgs
e) {}
4027
protected virtual void OnPreviewKeyUp(
KeyEventArgs
e) {}
4046
protected virtual void OnKeyUp(
KeyEventArgs
e) {}
Core\CSharp\System\Windows\Generated\UIElement3D.cs (4)
1417
protected internal virtual void OnPreviewKeyDown(
KeyEventArgs
e) {}
1436
protected internal virtual void OnKeyDown(
KeyEventArgs
e) {}
1455
protected internal virtual void OnPreviewKeyUp(
KeyEventArgs
e) {}
1474
protected internal virtual void OnKeyUp(
KeyEventArgs
e) {}
Core\CSharp\System\Windows\Input\AccessKeyManager.cs (2)
237
OnKeyDown((
KeyEventArgs
)e.StagingItem.Input);
364
private void OnKeyDown(
KeyEventArgs
e)
Core\CSharp\System\Windows\Input\Command\KeyGesture.cs (2)
183
KeyEventArgs
keyEventArgs = inputEventArgs as
KeyEventArgs
;
Core\CSharp\System\Windows\Input\InputManager.cs (1)
338
internal void RaiseTranslateAccelerator(
KeyEventArgs
e)
Core\CSharp\System\Windows\Input\KeyboardDevice.cs (12)
852
KeyEventArgs
args = (
KeyEventArgs
) e.StagingItem.Input;
876
KeyEventArgs
args = (
KeyEventArgs
) e.StagingItem.Input;
899
KeyEventArgs
previewKeyDown = (
KeyEventArgs
) e.StagingItem.Input;
922
KeyEventArgs
keyDown = new KeyEventArgs(this, previewKeyDown.UnsafeInputSource, previewKeyDown.Timestamp, key);
954
KeyEventArgs
previewKeyUp = (
KeyEventArgs
) e.StagingItem.Input;
977
KeyEventArgs
keyUp = new KeyEventArgs(this, previewKeyUp.UnsafeInputSource, previewKeyUp.Timestamp, key);
1018
KeyEventArgs
previewKeyDown = new KeyEventArgs(this, keyboardInput.InputSource, keyboardInput.Timestamp, key);
1037
KeyEventArgs
previewKeyUp = new KeyEventArgs(this, keyboardInput.InputSource, keyboardInput.Timestamp, key);
Core\CSharp\System\Windows\Input\KeyEventHandler.cs (1)
9
public delegate void KeyEventHandler(object sender,
KeyEventArgs
e);
Core\CSharp\System\Windows\Input\TextCompositionManager.cs (6)
551
KeyEventArgs
keyArgs = (
KeyEventArgs
) e.StagingItem.Input;
596
KeyEventArgs
keyArgs = (
KeyEventArgs
)e.StagingItem.Input;
620
KeyEventArgs
keyArgs = (
KeyEventArgs
) e.StagingItem.Input;
Core\CSharp\System\Windows\Input\TextServicesManager.cs (6)
133
KeyEventArgs
keyArgs;
160
keyArgs = (
KeyEventArgs
)e.StagingItem.Input;
183
KeyEventArgs
keyArgs;
207
keyArgs = (
KeyEventArgs
)e.StagingItem.Input;
225
keyArgs = (
KeyEventArgs
)e.StagingItem.Input;
237
private bool TextServicesKeystroke(TextServicesContext context,
KeyEventArgs
keyArgs, bool test)
Core\CSharp\System\Windows\Interop\HwndSource.cs (2)
2744
KeyEventArgs
tunnelArgs = new KeyEventArgs(Keyboard.PrimaryDevice, this, msg.time, key);
2754
KeyEventArgs
bubbleArgs = new KeyEventArgs(Keyboard.PrimaryDevice, this, msg.time, key);
PresentationFramework (94)
src\Framework\MS\Internal\AppModel\RootBrowserWindow.cs (1)
168
protected override void OnKeyDown(
KeyEventArgs
e)
src\Framework\MS\Internal\Documents\DocumentViewerHelper.cs (1)
353
internal static void KeyDownHelper(
KeyEventArgs
e, DependencyObject findToolBarHost)
src\Framework\System\Windows\Controls\Calendar.cs (3)
833
protected override void OnKeyDown(
KeyEventArgs
e)
841
protected override void OnKeyUp(
KeyEventArgs
e)
1252
private bool ProcessCalendarKey(
KeyEventArgs
e)
src\Framework\System\Windows\Controls\CheckBox.cs (1)
75
protected override void OnKeyDown(
KeyEventArgs
e)
src\Framework\System\Windows\Controls\ComboBox.cs (3)
1316
protected override void OnPreviewKeyDown(
KeyEventArgs
e)
1328
protected override void OnKeyDown(
KeyEventArgs
e)
1333
private void KeyDownHandler(
KeyEventArgs
e)
src\Framework\System\Windows\Controls\ContextMenu.cs (3)
420
protected override void OnKeyDown(
KeyEventArgs
e)
458
protected override void OnKeyUp(
KeyEventArgs
e)
671
return (e is
KeyEventArgs
) || (e is FindToolTipEventArgs);
src\Framework\System\Windows\Controls\DataGrid.cs (8)
5518
protected override void OnKeyDown(
KeyEventArgs
e)
5584
private void OnArrowKeyDown(
KeyEventArgs
e)
5880
private bool TryDefaultNavigation(
KeyEventArgs
e, ItemInfo currentInfo)
5911
private void OnTabKeyDown(
KeyEventArgs
e)
5983
private void OnEnterKeyDown(
KeyEventArgs
e)
6047
private void SelectAndEditOnFocusMove(
KeyEventArgs
e, DataGridCell oldCell, bool wasEditing, bool allowsExtendSelect, bool ignoreControlKey)
6074
private void OnHomeOrEndKeyDown(
KeyEventArgs
e)
6125
private void OnPageUpOrDownKeyDown(
KeyEventArgs
e)
src\Framework\System\Windows\Controls\DataGridCell.cs (2)
959
protected override void OnPreviewKeyDown(
KeyEventArgs
e)
967
protected override void OnKeyDown(
KeyEventArgs
e)
src\Framework\System\Windows\Controls\DataGridCheckBoxColumn.cs (2)
208
KeyEventArgs
keyArgs = e as
KeyEventArgs
;
src\Framework\System\Windows\Controls\DataGridComboBoxColumn.cs (2)
603
KeyEventArgs
keyArgs = e as
KeyEventArgs
;
src\Framework\System\Windows\Controls\DataGridHelper.cs (1)
750
public static bool IsImeProcessed(
KeyEventArgs
keyArgs)
src\Framework\System\Windows\Controls\DataGridHyperlinkColumn.cs (1)
288
else if (DataGridHelper.IsImeProcessed(e as
KeyEventArgs
))
src\Framework\System\Windows\Controls\DataGridTextColumn.cs (1)
266
else if (DataGridHelper.IsImeProcessed(e as
KeyEventArgs
))
src\Framework\System\Windows\Controls\DatePicker.cs (4)
941
KeyEventArgs
args = (
KeyEventArgs
)e;
1144
private bool ProcessDatePickerKey(
KeyEventArgs
e)
1300
private void TextBox_KeyDown(object sender,
KeyEventArgs
e)
src\Framework\System\Windows\Controls\DocumentViewer.cs (3)
1091
protected override void OnKeyDown(
KeyEventArgs
e)
2324
private
KeyEventArgs
ProcessFindKeys(
KeyEventArgs
e)
src\Framework\System\Windows\Controls\FlowDocumentReader.cs (2)
807
protected override void OnKeyDown(
KeyEventArgs
e)
1632
private static void KeyDownHandler(object sender,
KeyEventArgs
e)
src\Framework\System\Windows\Controls\FlowDocumentScrollViewer.cs (2)
660
protected override void OnKeyDown(
KeyEventArgs
e)
1591
private static void KeyDownHandler(object sender,
KeyEventArgs
e)
src\Framework\System\Windows\Controls\GridSplitter.cs (1)
707
protected override void OnKeyDown(
KeyEventArgs
e)
src\Framework\System\Windows\Controls\GridViewColumnHeader.cs (1)
369
internal void OnColumnHeaderKeyDown(object sender,
KeyEventArgs
e)
src\Framework\System\Windows\Controls\GridViewHeaderRowPresenter.cs (1)
1272
private void OnColumnHeadersPresenterKeyDown(object sender,
KeyEventArgs
e)
src\Framework\System\Windows\Controls\ItemsControl.cs (1)
1702
protected override void OnKeyDown(
KeyEventArgs
e)
src\Framework\System\Windows\Controls\ListBox.cs (1)
311
protected override void OnKeyDown(
KeyEventArgs
e)
src\Framework\System\Windows\Controls\Menu.cs (1)
205
protected override void OnKeyDown(
KeyEventArgs
e)
src\Framework\System\Windows\Controls\MenuItem.cs (1)
1926
protected override void OnKeyDown(
KeyEventArgs
e)
src\Framework\System\Windows\Controls\PasswordBox.cs (2)
530
protected override void OnKeyDown(
KeyEventArgs
e)
545
protected override void OnKeyUp(
KeyEventArgs
e)
src\Framework\System\Windows\Controls\PopupControlService.cs (5)
139
ProcessKeyDown(sender, (
KeyEventArgs
)e.StagingItem.Input);
143
ProcessKeyUp(sender, (
KeyEventArgs
)e.StagingItem.Input);
208
private void ProcessKeyDown(object sender,
KeyEventArgs
e)
256
private void ProcessKeyUp(object sender,
KeyEventArgs
e)
828
private void RaiseContextMenuOpeningEvent(
KeyEventArgs
e)
src\Framework\System\Windows\Controls\Primitives\ButtonBase.cs (2)
591
protected override void OnKeyDown(
KeyEventArgs
e)
655
protected override void OnKeyUp(
KeyEventArgs
e)
src\Framework\System\Windows\Controls\Primitives\MenuBase.cs (1)
449
protected override void OnKeyDown(
KeyEventArgs
e)
src\Framework\System\Windows\Controls\Primitives\RepeatButton.cs (2)
308
protected override void OnKeyDown(
KeyEventArgs
e)
321
protected override void OnKeyUp(
KeyEventArgs
e)
src\Framework\System\Windows\Controls\Primitives\TextBoxBase.cs (3)
1100
protected override void OnPreviewKeyDown(
KeyEventArgs
e)
1118
protected override void OnKeyDown(
KeyEventArgs
e)
1136
protected override void OnKeyUp(
KeyEventArgs
e)
src\Framework\System\Windows\Controls\ScrollViewer.cs (2)
950
protected override void OnKeyDown(
KeyEventArgs
e)
1086
internal void ScrollInDirection(
KeyEventArgs
e)
src\Framework\System\Windows\Controls\SinglePageViewer.cs (2)
385
protected override void OnKeyDown(
KeyEventArgs
e)
1371
private static void KeyDownHandler(object sender,
KeyEventArgs
e)
src\Framework\System\Windows\Controls\Slider.cs (2)
185
KeyEventArgs
keyEventArgs = inputEventArgs as
KeyEventArgs
;
src\Framework\System\Windows\Controls\TabControl.cs (1)
415
protected override void OnKeyDown(
KeyEventArgs
e)
src\Framework\System\Windows\Controls\ToolBar.cs (1)
653
protected override void OnKeyDown(
KeyEventArgs
e)
src\Framework\System\Windows\Controls\TreeView.cs (2)
513
protected override void OnKeyDown(
KeyEventArgs
e)
705
private bool HandleScrollByPage(
KeyEventArgs
e)
src\Framework\System\Windows\Controls\TreeViewItem.cs (4)
573
protected override void OnKeyDown(
KeyEventArgs
e)
669
internal bool HandleUpKey(
KeyEventArgs
e)
674
internal bool HandleDownKey(
KeyEventArgs
e)
679
private bool HandleUpDownKey(bool up,
KeyEventArgs
e)
src\Framework\System\Windows\Documents\Hyperlink.cs (2)
743
protected internal override void OnKeyDown(
KeyEventArgs
e)
1022
private static void OnKeyDown(object sender,
KeyEventArgs
e)
src\Framework\System\windows\Documents\TextEditor.cs (3)
699
internal void OnPreviewKeyDown(
KeyEventArgs
e)
704
internal void OnKeyDown(
KeyEventArgs
e)
709
internal void OnKeyUp(
KeyEventArgs
e)
src\Framework\System\windows\Documents\TextEditorTyping.cs (3)
250
internal static void OnPreviewKeyDown(object sender,
KeyEventArgs
e)
294
internal static void OnKeyDown(object sender,
KeyEventArgs
e)
341
internal static void OnKeyUp(object sender,
KeyEventArgs
e)
src\Framework\System\Windows\Input\KeyboardNavigation.cs (8)
1255
private void TranslateAccelerator(object sender,
KeyEventArgs
e)
1275
KeyEventArgs
keyEventArgs = (
KeyEventArgs
)inputEventArgs;
3276
KeyEventArgs
keyEventArgs = inputEventArgs as
KeyEventArgs
;
3305
KeyEventArgs
keyEventArgs = inputEventArgs as
KeyEventArgs
;
3353
private Key GetRealKey(
KeyEventArgs
e)
src\Framework\System\Windows\Interop\HwndHost.cs (2)
166
protected override void OnKeyUp(
KeyEventArgs
e)
206
protected override void OnKeyDown(
KeyEventArgs
e)
System.Activities.Core.Presentation (20)
System\Activities\Core\Presentation\CaseKeyBox.xaml.cs (1)
327
void OnBoxKeyDown(object sender,
KeyEventArgs
e)
System\Activities\Core\Presentation\FlowchartDesigner.xaml.cs (3)
1955
private void OnFlowchartGridKeyDown(object sender,
KeyEventArgs
e)
1987
private void FlowchartDesignerKeyDown(object sender,
KeyEventArgs
e)
1993
private void FlowchartDesignerPreviewKeyDown(object sender,
KeyEventArgs
e)
System\Activities\Core\Presentation\FlowSwitchCaseEditorDialog.cs (1)
95
protected override void OnKeyDown(
KeyEventArgs
e)
System\Activities\Core\Presentation\StartSymbol.xaml.cs (1)
51
protected override void OnPreviewKeyDown(
KeyEventArgs
e)
System\Activities\Core\Presentation\StateContainerEditor.xaml.cs (2)
1429
void OnConnectorKeyDown(object sender,
KeyEventArgs
e)
2119
void OnStateContainerGridKeyDown(object sender,
KeyEventArgs
e)
System\Activities\Core\Presentation\StateMachineDesigner.xaml.cs (2)
84
private void StateMachineDesignerKeyDown(object sender,
KeyEventArgs
e)
90
private void StateMachineDesignerPreviewKeyDown(object sender,
KeyEventArgs
e)
System\Activities\Core\Presentation\SwitchDesigner.xaml.cs (1)
348
void OnDefaultCaseViewKeyDown(object sender,
KeyEventArgs
e)
System\Activities\Core\Presentation\TryCatchDesigner.xaml.cs (5)
450
void OnTryViewKeyDown(object sender,
KeyEventArgs
e)
459
void OnTryAddActivityKeyDown(object sender,
KeyEventArgs
e)
471
void OnFinallyViewKeyDown(object sender,
KeyEventArgs
e)
480
void OnFinallyAddActivityKeyDown(object sender,
KeyEventArgs
e)
559
void OnTypePresenterKeyDown(object sender,
KeyEventArgs
e)
System\Activities\Presentation\DynamicArgumentDesigner.xaml.cs (1)
180
void OnDataGridRowKeyDown(object sender,
KeyEventArgs
args)
System\Activities\Presentation\TypeCollectionDesigner.xaml.cs (1)
118
void OnTypesDataGridRowKeyDown(object sender,
KeyEventArgs
args)
System\ServiceModel\Activities\Presentation\ContentCorrelationTypeExpander.xaml.cs (1)
176
void OnTreeViewItemKeyboardAccept(object sender,
KeyEventArgs
e)
System\ServiceModel\Activities\Presentation\MessageQueryEditor.xaml.cs (1)
90
protected override void OnKeyDown(
KeyEventArgs
e)
System.Activities.Presentation (27)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\CategoryList.cs (1)
753
protected override void OnKeyDown(
KeyEventArgs
e)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\FlagEditor.xaml.cs (1)
68
protected override void OnPreviewKeyDown(
KeyEventArgs
e)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\Controls\WorkaroundPopup.cs (1)
126
protected override void OnKeyDown(
KeyEventArgs
e)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\ValueEditors\ChoiceEditor.cs (1)
729
protected override void OnPreviewKeyDown(
KeyEventArgs
e)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\ValueEditors\StringEditor.cs (1)
237
protected override void OnKeyDown(
KeyEventArgs
e)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\KeyboardEnabledRadioButton.cs (1)
15
protected override void OnKeyDown(
KeyEventArgs
e)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Selection\PropertySelection.cs (1)
390
private static void OnKeyDownTargetKeyDown(object sender,
KeyEventArgs
e)
System.Activities.Presentation\System\Activities\Presentation\DefaultCommandExtensionCallback.cs (2)
163
KeyEventArgs
keyArgs = inputEventArgs as
KeyEventArgs
;
System.Activities.Presentation\System\Activities\Presentation\ErrorReporting.cs (1)
166
void OnWindowKeyDown(object s,
KeyEventArgs
e)
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\FreeFormPanel.cs (1)
529
protected override void OnKeyDown(
KeyEventArgs
e)
System.Activities.Presentation\System\Activities\Presentation\Toolbox\ToolboxControl.cs (1)
248
protected override void OnPreviewKeyDown(
KeyEventArgs
e)
System.Activities.Presentation\System\Activities\Presentation\View\ActivityTypeResolver.xaml.cs (1)
235
void TypeKeyDown(object sender,
KeyEventArgs
e)
System.Activities.Presentation\System\Activities\Presentation\View\AnnotationDialog.xaml.cs (1)
41
protected override void OnKeyDown(Windows.Input.
KeyEventArgs
e)
System.Activities.Presentation\System\Activities\Presentation\View\DataGridHelper.cs (1)
189
void OnDataGridRowKeyDown(object sender,
KeyEventArgs
e)
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (5)
687
void OnScrollViewerKeyDown(object sender,
KeyEventArgs
e)
706
protected override void OnKeyDown(
KeyEventArgs
e)
918
KeyEventArgs
keyArgs = e as
KeyEventArgs
;
933
void OnBreadCrumbNavigation(object sender,
KeyEventArgs
e)
System.Activities.Presentation\System\Activities\Presentation\View\ExtensionWindow.cs (1)
506
protected override void OnKeyDown(
KeyEventArgs
e)
System.Activities.Presentation\System\Activities\Presentation\View\ImportDesigner.xaml.cs (1)
255
void OnPreviewKeyUp(object sender,
KeyEventArgs
args)
System.Activities.Presentation\System\Activities\Presentation\View\ScrollViewerPanner.cs (2)
207
internal void OnScrollViewerKeyDown(object sender,
KeyEventArgs
e)
228
internal void OnScrollViewerKeyUp(object sender,
KeyEventArgs
e)
System.Activities.Presentation\System\Activities\Presentation\View\TypeBrowser.xaml.cs (1)
182
protected override void OnKeyDown(
KeyEventArgs
e)
System.Activities.Presentation\System\Activities\Presentation\View\TypePresenter.xaml.cs (2)
463
protected override void OnPreviewKeyDown(
KeyEventArgs
e)
713
void OnTypePresenterKeyDown(object sender,
KeyEventArgs
e)