Implemented interface member:
method
AddHandler
System.Windows.IInputElement.AddHandler(System.Windows.RoutedEvent, System.Delegate)
100 references to AddHandler
PresentationCore (9)
Core\CSharp\System\Windows\EventManager.cs (1)
122/// <see cref="UIElement.AddHandler(RoutedEvent, Delegate)"/> <para/>
Core\CSharp\System\Windows\Input\Command\CommandManager.cs (4)
70element.AddHandler(PreviewExecutedEvent, handler); 117element.AddHandler(ExecutedEvent, handler); 164element.AddHandler(PreviewCanExecuteEvent, handler); 211element.AddHandler(CanExecuteEvent, handler);
Core\CSharp\System\Windows\PresentationSource.cs (1)
183uie.AddHandler(SourceChangedEvent, handler);
Core\CSharp\System\Windows\UIElement.cs (3)
1921uiElement.AddHandler(routedEvent, handler); 3527add { AddHandler(GotFocusEvent, value); } 3541add { AddHandler(LostFocusEvent, value); }
PresentationFramework (78)
src\Framework\MS\Internal\AppModel\RootBrowserWindow.cs (1)
114AddHandler(Hyperlink.RequestSetStatusBarEvent, new RoutedEventHandler(OnRequestSetStatusBar_Hyperlink));
src\Framework\MS\Internal\Ink\EditingCoordinator.cs (2)
1057_inkCanvas.AddHandler(Mouse.MouseMoveEvent, new MouseEventHandler(OnInkCanvasDeviceMove<MouseEventArgs>)); 1058_inkCanvas.AddHandler(UIElement.LostMouseCaptureEvent, new MouseEventHandler(OnInkCanvasLostDeviceCapture<MouseEventArgs>));
src\Framework\MS\Internal\Ink\SelectionEditingBehavior.cs (3)
94InkCanvas.SelectionAdorner.AddHandler(Mouse.MouseUpEvent, new MouseButtonEventHandler(OnMouseUp)); 95InkCanvas.SelectionAdorner.AddHandler(Mouse.MouseMoveEvent, new MouseEventHandler(OnMouseMove)); 96InkCanvas.SelectionAdorner.AddHandler(UIElement.LostMouseCaptureEvent,
src\Framework\MS\Internal\Ink\SelectionEditor.cs (4)
96InkCanvas.SelectionAdorner.AddHandler(Mouse.MouseDownEvent, new MouseButtonEventHandler(OnAdornerMouseButtonDownEvent)); 97InkCanvas.SelectionAdorner.AddHandler(Mouse.MouseMoveEvent, new MouseEventHandler(OnAdornerMouseMoveEvent)); 98InkCanvas.SelectionAdorner.AddHandler(Mouse.MouseEnterEvent, new MouseEventHandler(OnAdornerMouseMoveEvent)); 99InkCanvas.SelectionAdorner.AddHandler(Mouse.MouseLeaveEvent, new MouseEventHandler(OnAdornerMouseLeaveEvent));
src\Framework\System\Windows\Controls\Calendar.cs (1)
58add { AddHandler(SelectedDatesChangedEvent, value); }
src\Framework\System\Windows\Controls\ContextMenu.cs (2)
331AddHandler(OpenedEvent, value); 360AddHandler(ClosedEvent, value);
src\Framework\System\Windows\Controls\Control.cs (2)
530add { AddHandler(PreviewMouseDoubleClickEvent, value); } 553add { AddHandler(MouseDoubleClickEvent, value); }
src\Framework\System\Windows\Controls\DataGridCell.cs (2)
731AddHandler(SelectedEvent, value); 761AddHandler(UnselectedEvent, value);
src\Framework\System\Windows\Controls\DataGridRow.cs (2)
1146AddHandler(SelectedEvent, value); 1176AddHandler(UnselectedEvent, value);
src\Framework\System\Windows\Controls\DatePicker.cs (2)
79add { AddHandler(SelectedDateChangedEvent, value); } 676_popUp.AddHandler(PreviewMouseLeftButtonDownEvent, new MouseButtonEventHandler(PopUp_PreviewMouseLeftButtonDown));
src\Framework\System\Windows\Controls\Expander.cs (2)
180add { AddHandler(ExpandedEvent, value); } 199add { AddHandler(CollapsedEvent, value); }
src\Framework\System\Windows\Controls\Image.cs (1)
167add { AddHandler(ImageFailedEvent, value); }
src\Framework\System\Windows\Controls\InkCanvas.cs (6)
1037AddHandler(InkCanvas.StrokeCollectedEvent, value); 1176AddHandler(InkCanvas.GestureEvent, value); 1276AddHandler(InkCanvas.ActiveEditingModeChangedEvent, value); 1335AddHandler(InkCanvas.EditingModeChangedEvent, value); 1392AddHandler(InkCanvas.EditingModeInvertedChangedEvent, value); 1552AddHandler(InkCanvas.StrokeErasedEvent, value);
src\Framework\System\Windows\Controls\ListBoxItem.cs (2)
153AddHandler(SelectedEvent, value); 173AddHandler(UnselectedEvent, value);
src\Framework\System\Windows\Controls\MediaElement.cs (6)
579add { AddHandler(MediaFailedEvent, value); } 599add { AddHandler(MediaOpenedEvent, value); } 618add { AddHandler(BufferingStartedEvent, value); } 637add { AddHandler(BufferingEndedEvent, value); } 656add { AddHandler(ScriptCommandEvent, value); } 675add { AddHandler(MediaEndedEvent, value); }
src\Framework\System\Windows\Controls\MenuItem.cs (5)
230AddHandler(MenuItem.ClickEvent, value); 263AddHandler(CheckedEvent, value); 280AddHandler(UncheckedEvent, value); 310AddHandler(SubmenuOpenedEvent, value); 326AddHandler(SubmenuClosedEvent, value);
src\Framework\System\Windows\Controls\PasswordBox.cs (1)
416AddHandler(PasswordChangedEvent, value);
src\Framework\System\Windows\Controls\Primitives\ButtonBase.cs (1)
184public event RoutedEventHandler Click { add { AddHandler(ClickEvent, value); } remove { RemoveHandler(ClickEvent, value); } }
src\Framework\System\Windows\Controls\Primitives\RangeBase.cs (1)
70public event RoutedPropertyChangedEventHandler<double> ValueChanged { add { AddHandler(ValueChangedEvent, value); } remove { RemoveHandler(ValueChangedEvent, value); } }
src\Framework\System\Windows\Controls\Primitives\ScrollBar.cs (1)
83public event ScrollEventHandler Scroll { add { AddHandler(ScrollEvent, value); } remove { RemoveHandler(ScrollEvent, value); } }
src\Framework\System\Windows\Controls\Primitives\Selector.cs (1)
98add { AddHandler(SelectionChangedEvent, value); }
src\Framework\System\Windows\Controls\Primitives\TextBoxBase.cs (2)
949AddHandler(TextChangedEvent, value); 974AddHandler(SelectionChangedEvent, value);
src\Framework\System\Windows\Controls\Primitives\Thumb.cs (3)
84public event DragStartedEventHandler DragStarted { add { AddHandler(DragStartedEvent, value); } remove { RemoveHandler(DragStartedEvent, value); } } 90public event DragDeltaEventHandler DragDelta { add { AddHandler(DragDeltaEvent, value); } remove { RemoveHandler(DragDeltaEvent, value); } } 96public event DragCompletedEventHandler DragCompleted { add { AddHandler(DragCompletedEvent, value); } remove { RemoveHandler(DragCompletedEvent, value); } }
src\Framework\System\Windows\Controls\Primitives\ToggleButton.cs (3)
80AddHandler(CheckedEvent, value); 97AddHandler(UncheckedEvent, value); 114AddHandler(IndeterminateEvent, value);
src\Framework\System\Windows\Controls\ScrollViewer.cs (1)
880add { AddHandler(ScrollChangedEvent, value); }
src\Framework\System\Windows\Controls\StickyNote.cs (6)
209button.AddHandler(ButtonBase.ClickEvent, new RoutedEventHandler(OnButtonClick)); 217closeButton.AddHandler(ButtonBase.ClickEvent, new RoutedEventHandler(OnButtonClick)); 223titleThumb.AddHandler(Thumb.DragDeltaEvent, new DragDeltaEventHandler(OnDragDelta)); 224titleThumb.AddHandler(Thumb.DragCompletedEvent, new DragCompletedEventHandler(OnDragCompleted)); 230resizeThumb.AddHandler(Thumb.DragDeltaEvent, new DragDeltaEventHandler(OnDragDelta)); 231resizeThumb.AddHandler(Thumb.DragCompletedEvent, new DragCompletedEventHandler(OnDragCompleted));
src\Framework\System\Windows\Controls\ToolTip.cs (2)
370AddHandler(OpenedEvent, value); 401AddHandler(ClosedEvent, value);
src\Framework\System\Windows\Controls\TreeView.cs (1)
165AddHandler(SelectedItemChangedEvent, value);
src\Framework\System\Windows\Controls\TreeViewItem.cs (4)
219AddHandler(ExpandedEvent, value); 251AddHandler(CollapsedEvent, value); 283AddHandler(SelectedEvent, value); 315AddHandler(UnselectedEvent, value);
src\Framework\System\windows\Documents\TextEditorMouse.cs (1)
629((ScrollViewer)scrollViewer).AddHandler(ScrollViewer.ScrollChangedEvent, new ScrollChangedEventHandler(OnScrollChangedDuringGotFocus));
src\Framework\System\Windows\FrameworkElement.cs (6)
2681add { AddHandler(Binding.TargetUpdatedEvent, value); } 2691add { AddHandler(Binding.SourceUpdatedEvent, value); } 5958add { AddHandler(ToolTipOpeningEvent, value); } 5990add { AddHandler(ToolTipClosingEvent, value); } 6023add { AddHandler(ContextMenuOpeningEvent, value); } 6050add { AddHandler(ContextMenuClosingEvent, value); }
src\Framework\System\Windows\Markup\BamlRecordReader.cs (1)
2884uiel.AddHandler(reid, d);
System.Activities.Core.Presentation (2)
System\Activities\Core\Presentation\CaseKeyBox.xaml.cs (2)
62add { AddHandler(ValueCommittedEvent, value); } 75add { AddHandler(EditCancelledEvent, value); }
System.Activities.Presentation (11)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\CategoryList.cs (1)
85this.AddHandler(FocusManager.GotFocusEvent, new RoutedEventHandler(OnSomeoneGotFocus));
System.Activities.Presentation\System\Activities\Presentation\Toolbox\ToolboxControl.cs (2)
103AddHandler(ToolCreatedEvent, value); 115AddHandler(ToolSelectedEvent, value);
System.Activities.Presentation\System\Activities\Presentation\View\ExpressionTextBox.xaml.cs (1)
198this.AddHandler(ExpressionTextBox.EditorLostLogicalFocusEvent, value);
System.Activities.Presentation\System\Activities\Presentation\View\ExtensionSurface.cs (1)
71this.AddHandler(ExtensionWindow.CloseEvent, new RoutedEventHandler(OnExtensionWindowClosed));
System.Activities.Presentation\System\Activities\Presentation\View\ExtensionWindow.cs (3)
123AddHandler(ClosingEvent, value); 136AddHandler(CloseEvent, value); 148AddHandler(VisibilityChangedEvent, value);
System.Activities.Presentation\System\Activities\Presentation\View\TypePresenter.xaml.cs (3)
263add { this.AddHandler(TypeBrowserOpenedEvent, value); } 269add { this.AddHandler(TypeBrowserClosedEvent, value); } 275add { this.AddHandler(TypeChangedEvent, value); }