83 references to AddHandler
PresentationCore (60)
Core\CSharp\System\Windows\Generated\UIElement.cs (54)
523
AddHandler
(routedEvent, handler, false);
3165
add {
AddHandler
(Mouse.PreviewMouseDownEvent, value, false); }
3184
add {
AddHandler
(Mouse.MouseDownEvent, value, false); }
3203
add {
AddHandler
(Mouse.PreviewMouseUpEvent, value, false); }
3222
add {
AddHandler
(Mouse.MouseUpEvent, value, false); }
3241
add {
AddHandler
(UIElement.PreviewMouseLeftButtonDownEvent, value, false); }
3260
add {
AddHandler
(UIElement.MouseLeftButtonDownEvent, value, false); }
3279
add {
AddHandler
(UIElement.PreviewMouseLeftButtonUpEvent, value, false); }
3298
add {
AddHandler
(UIElement.MouseLeftButtonUpEvent, value, false); }
3317
add {
AddHandler
(UIElement.PreviewMouseRightButtonDownEvent, value, false); }
3336
add {
AddHandler
(UIElement.MouseRightButtonDownEvent, value, false); }
3355
add {
AddHandler
(UIElement.PreviewMouseRightButtonUpEvent, value, false); }
3374
add {
AddHandler
(UIElement.MouseRightButtonUpEvent, value, false); }
3393
add {
AddHandler
(Mouse.PreviewMouseMoveEvent, value, false); }
3412
add {
AddHandler
(Mouse.MouseMoveEvent, value, false); }
3431
add {
AddHandler
(Mouse.PreviewMouseWheelEvent, value, false); }
3450
add {
AddHandler
(Mouse.MouseWheelEvent, value, false); }
3469
add {
AddHandler
(Mouse.MouseEnterEvent, value, false); }
3488
add {
AddHandler
(Mouse.MouseLeaveEvent, value, false); }
3507
add {
AddHandler
(Mouse.GotMouseCaptureEvent, value, false); }
3526
add {
AddHandler
(Mouse.LostMouseCaptureEvent, value, false); }
3545
add {
AddHandler
(Mouse.QueryCursorEvent, value, false); }
3982
add {
AddHandler
(Keyboard.PreviewKeyDownEvent, value, false); }
4001
add {
AddHandler
(Keyboard.KeyDownEvent, value, false); }
4020
add {
AddHandler
(Keyboard.PreviewKeyUpEvent, value, false); }
4039
add {
AddHandler
(Keyboard.KeyUpEvent, value, false); }
4058
add {
AddHandler
(Keyboard.PreviewGotKeyboardFocusEvent, value, false); }
4077
add {
AddHandler
(Keyboard.GotKeyboardFocusEvent, value, false); }
4096
add {
AddHandler
(Keyboard.PreviewLostKeyboardFocusEvent, value, false); }
4115
add {
AddHandler
(Keyboard.LostKeyboardFocusEvent, value, false); }
4134
add {
AddHandler
(TextCompositionManager.PreviewTextInputEvent, value, false); }
4153
add {
AddHandler
(TextCompositionManager.TextInputEvent, value, false); }
4172
add {
AddHandler
(DragDrop.PreviewQueryContinueDragEvent, value, false); }
4191
add {
AddHandler
(DragDrop.QueryContinueDragEvent, value, false); }
4210
add {
AddHandler
(DragDrop.PreviewGiveFeedbackEvent, value, false); }
4229
add {
AddHandler
(DragDrop.GiveFeedbackEvent, value, false); }
4248
add {
AddHandler
(DragDrop.PreviewDragEnterEvent, value, false); }
4267
add {
AddHandler
(DragDrop.DragEnterEvent, value, false); }
4286
add {
AddHandler
(DragDrop.PreviewDragOverEvent, value, false); }
4305
add {
AddHandler
(DragDrop.DragOverEvent, value, false); }
4324
add {
AddHandler
(DragDrop.PreviewDragLeaveEvent, value, false); }
4343
add {
AddHandler
(DragDrop.DragLeaveEvent, value, false); }
4362
add {
AddHandler
(DragDrop.PreviewDropEvent, value, false); }
4381
add {
AddHandler
(DragDrop.DropEvent, value, false); }
4401
add {
AddHandler
(Touch.PreviewTouchDownEvent, value, false); }
4421
add {
AddHandler
(Touch.TouchDownEvent, value, false); }
4441
add {
AddHandler
(Touch.PreviewTouchMoveEvent, value, false); }
4461
add {
AddHandler
(Touch.TouchMoveEvent, value, false); }
4481
add {
AddHandler
(Touch.PreviewTouchUpEvent, value, false); }
4501
add {
AddHandler
(Touch.TouchUpEvent, value, false); }
4521
add {
AddHandler
(Touch.GotTouchCaptureEvent, value, false); }
4541
add {
AddHandler
(Touch.LostTouchCaptureEvent, value, false); }
4561
add {
AddHandler
(Touch.TouchEnterEvent, value, false); }
4581
add {
AddHandler
(Touch.TouchLeaveEvent, value, false); }
Core\CSharp\System\Windows\UIElement.cs (6)
4433
add {
AddHandler
(ManipulationStartingEvent, value, false); }
4458
add {
AddHandler
(ManipulationStartedEvent, value, false); }
4483
add {
AddHandler
(ManipulationDeltaEvent, value, false); }
4508
add {
AddHandler
(ManipulationInertiaStartingEvent, value, false); }
4533
add {
AddHandler
(ManipulationBoundaryFeedbackEvent, value, false); }
4558
add {
AddHandler
(ManipulationCompletedEvent, value, false); }
PresentationFramework (18)
src\Framework\System\Windows\Controls\DatePicker.cs (4)
691
_dropDownButton.
AddHandler
(MouseLeaveEvent, new MouseEventHandler(DropDownButton_MouseLeave), true);
710
_textBox.
AddHandler
(TextBox.KeyDownEvent, new KeyEventHandler(TextBox_KeyDown), true);
711
_textBox.
AddHandler
(TextBox.TextChangedEvent, new TextChangedEventHandler(TextBox_TextChanged), true);
712
_textBox.
AddHandler
(TextBox.LostFocusEvent, new RoutedEventHandler(TextBox_LostFocus), true);
src\Framework\System\Windows\Controls\Primitives\CalendarItem.cs (8)
978
dayCell.
AddHandler
(CalendarDayButton.MouseLeftButtonDownEvent, new MouseButtonEventHandler(Cell_MouseLeftButtonDown), true);
979
dayCell.
AddHandler
(CalendarDayButton.MouseLeftButtonUpEvent, new MouseButtonEventHandler(Cell_MouseLeftButtonUp), true);
980
dayCell.
AddHandler
(CalendarDayButton.MouseEnterEvent, new MouseEventHandler(Cell_MouseEnter), true);
982
dayCell.
AddHandler
(PreviewKeyDownEvent, new RoutedEventHandler(CellOrMonth_PreviewKeyDown), true);
1004
monthCell.
AddHandler
(CalendarButton.MouseLeftButtonDownEvent, new MouseButtonEventHandler(Month_MouseLeftButtonDown), true);
1005
monthCell.
AddHandler
(CalendarButton.MouseLeftButtonUpEvent, new MouseButtonEventHandler(Month_MouseLeftButtonUp), true);
1006
monthCell.
AddHandler
(CalendarButton.MouseEnterEvent, new MouseEventHandler(Month_MouseEnter), true);
1007
monthCell.
AddHandler
(UIElement.PreviewKeyDownEvent, new RoutedEventHandler(CellOrMonth_PreviewKeyDown), true);
src\Framework\System\Windows\EventTrigger.cs (1)
321
eventTrigger._source.
AddHandler
( eventTrigger.RoutedEvent, eventTrigger._routedEventHandler,
src\Framework\System\Windows\FrameworkElement.cs (4)
3289
add {
AddHandler
(RequestBringIntoViewEvent, value, false); }
3332
add {
AddHandler
(SizeChangedEvent, value, false);}
5722
AddHandler
(LoadedEvent, value, false);
5788
AddHandler
(UnloadedEvent, value, false);
src\Framework\System\Windows\Input\KeyboardNavigation.cs (1)
2853
targetUIElement.
AddHandler
(Keyboard.PreviewLostKeyboardFocusEvent, new KeyboardFocusChangedEventHandler(_LostFocus), true);
System.Activities.Presentation (5)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Selection\PropertySelection.cs (2)
279
target.
AddHandler
(UIElement.MouseDownEvent, new MouseButtonEventHandler(OnSelectionStopDoubleClickTargetMouseDown), false);
438
target.
AddHandler
(UIElement.KeyDownEvent, new KeyEventHandler(OnKeyDownTargetKeyDown), false);
System.Activities.Presentation\System\Activities\Presentation\Model\ModelSearchServiceImpl.cs (1)
198
designerView.
AddHandler
(UIElement.MouseLeftButtonDownEvent, new MouseButtonEventHandler(this.OnDesignerSurfaceMouseLeftButtonDown), true);
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (2)
266
this.
AddHandler
(UIElement.GotKeyboardFocusEvent, new KeyboardFocusChangedEventHandler(this.OnWorkflowElementGotKeyboardFocus), true);
267
this.
AddHandler
(UIElement.MouseLeftButtonDownEvent, new MouseButtonEventHandler(this.OnDesignerSurfaceMouseLeftButtonDown), true);