12.3. Event Reference
Routed EventYes ElementsMenuItem Hyperlink ButtonBase DescriptionClick is raised on an element's MouseLeftButtonDown and MouseRightButtonDown events. Event Argument TypeRoutedEventArgs
Routed EventYes ElementsContextMenu ToolTip Popup Pag Windo NavigationWindow DescriptionClosed is raised when the element has closed. Event Argument TypeRoutedEventArgs
Routed EventYes ElementsUIElement DescriptionDragEnter is raised when an underlying system drag event is raised, with either this element or a child element along the route as the target. The corresponding event is PreviewDragEnter. Event Argument TypeRoutedEventArgs
Routed eventYes ElementsUIElement DescriptionDragLeave is raised when an underlying system drag event is raised, with either this element or a child element along the route identified as the origin. The corresponding event is PreviewDragLeave. Event Argument TypeRoutedEventArgs
Routed EventYes ElementsUIElement DescriptionDragOver is raised when an underlying system drag event is raised, with either this element or a child element along the route as the target. The corresponding event is PreviewDragOver. This event is raised even if the origin of the drag event is within the boundaries of the element. Event Argument TypeRoutedEventArgs
Routed EventYes ElementsUIElement DescriptionDrop is raised when an underlying system drop event is raised, with either this element or a child element along the route as the target. The corresponding event is PreviewDrop. Event Argument TypeRoutedEventArgs
Routed EventYes ElementsUIElement DescriptionGotFocus is a routed event that occurs when the element receives focus. The corresponding event is PreviewGotFocus. It uses a bubbling event strategy. Event Argument TypeRoutedEventArgs
Routed eventYes ElementsToggleButton MenuItem DescriptionIsCheckedChanged is raised when the IsChecked attribute of an element changes state. Event Argument TypeRoutedEventArgs
Routed eventNo ElementsUIElement DescriptionIsEnabledChanged is raised when the IsEnabled attribute of an element changes state. Event Argument TypeDependencyPropertyChangedEventArgs
Routed eventNo ElementsUIElement DescriptionIsFocusChanged is raised when the IsFocused attribute of an element changes state. Event Argument TypeDependencyPropertyChangedEventArgs
Routed eventNo ElementsUIElement DescriptionIsMouseDirectlyOverChanged is raised when the IsMouseDirectlyOver attribute of an element changes state. Event Argument TypeDependencyPropertyChangedEventArgs
Routed eventNo ElementsUIElement DescriptionIsVisibleChanged is raised when the IsVisible attribute of an element changes state. Event Argument TypeDependencyPropertyChangedEventArgs
Routed EventYes ElementsUIElement DescriptionKeyDown is raised when a key is pressed while the element or a child element has focus. KeyDown uses a bubbling event strategy. The corresponding event is PreviewKeyDown. Event Argument TypeKeyEventArgs
Routed EventYes ElementsUIElement DescriptionKeyUp is raised when a key is released while the element or a child element has focus. KeyUp uses a bubbling event strategy. The corresponding event is PreviewKeyUp. Event Argument TypeKeyEventArgs
Routed eventNo ElementsUIElement DescriptionLayoutUpdated is raised when the layout of the element has been altered because a property, such as Width or Content, was changed; because a window was resized; or because the user specifically requested the layout update. Event Argument TypeDependencyPropertyChangedEventArgs
Routed EventYes ElementsUIElement DescriptionLostFocus is a routed event that occurs when the element loses focus. The corresponding event is PreviewLostFocus. It uses a bubbling event strategy. Event Argument TypeRoutedEventArgs
Routed EventYes ElementsUIElement DescriptionMouseEnter is raised when the mouse pointer enters the boundaries of the element to which it is attached. It uses a direct routing strategy, so it is handled only in the element in which it was raised, but it does enable other routed event behaviors (such as event triggers in styles). Event Argument TypeRoutedEventArgs
Routed EventYes ElementsUIElement DescriptionMouseLeave is raised when the mouse pointer leaves the boundaries of the element to which it is attached. It uses a direct routing strategy, so it is handled only in the element in which it was raised, but it does enable other routed event behaviors (such as event triggers in styles). Event Argument TypeMouseEventArgs
Routed EventYes ElementsUIElement DescriptionMouseMove is raised when the mouse pointer moves over the element or a child element along the route. It uses a bubbling strategy. The corresponding event is PreviewMouseMove. Event Argument TypeMouseEventArgs
Routed EventNo ElementsUIElement DescriptionMouseLeftButtonDown is raised when the left mouse button is clicked over an element. Event Argument TypeMouseButtonEventArgs
Routed EventNo ElementsUIElement DescriptionMouseLeftButtonUp is raised when the left mouse button is released while it is over the element. Event Argument TypeMouseButtonEventArgs
Routed EventNo ElementsUIElement DescriptionMouseRightButtonDown is raised when the right mouse button is clicked while it is over the element. Event Argument TypeMouseButtonEventArgs
Routed EventNo ElementsUIElement DescriptionMouseRightButtonUp is raised when the right mouse button is released while it is over an element. Event Argument TypeMouseButtonEventArgs
Routed EventYes ElementsContextMenu Popup Tooltip DescriptionOpened is raised when the element opens. Event Argument TypeRoutedEventArgs
Routed eventYes ElementsTextBoxBase Selector DescriptionSelectionChanged is raised whenever a selection is changed, whether through binding, user interaction, or programmatically. It uses a bubble routing strategy. Event Argument TypeSelectionChangedEventArgs
Routed EventYes ElementsScrollViewer DescriptionScrollChanged is raised when the scroll state has changed. Event Argument TypeScrollChangedEventArgs
Routed EventYes ElementsTextBoxBase DescriptionTextChanged is raised when the text in the element changes either through user interaction or programmatically. This is raised even when the element is initially created and the text is populated. Event Argument TypeTextChangedEventArgs |