diff --git a/src/Avalonia.Base/Input/InputElement.cs b/src/Avalonia.Base/Input/InputElement.cs index 5da27c6804..a3c7e72ca9 100644 --- a/src/Avalonia.Base/Input/InputElement.cs +++ b/src/Avalonia.Base/Input/InputElement.cs @@ -560,62 +560,83 @@ namespace Avalonia.Input /// Called before the event occurs. /// /// The event args. + /// + /// Invoked when an unhandled reaches an element in its + /// route that is derived from this class. Implement this method to add class handling + /// for this event. + /// + /// Data about the event. protected virtual void OnKeyDown(KeyEventArgs e) { } /// - /// Called before the event occurs. + /// Invoked when an unhandled reaches an element in its + /// route that is derived from this class. Implement this method to add class handling + /// for this event. /// - /// The event args. + /// Data about the event. protected virtual void OnKeyUp(KeyEventArgs e) { } /// - /// Called before the event occurs. + /// Invoked when an unhandled reaches an element in its + /// route that is derived from this class. Implement this method to add class handling + /// for this event. /// - /// The event args. + /// Data about the event. protected virtual void OnTextInput(TextInputEventArgs e) { } /// - /// Called before the event occurs. + /// Invoked when an unhandled reaches an element in its + /// route that is derived from this class. Implement this method to add class handling + /// for this event. /// - /// The event args. + /// Data about the event. protected virtual void OnPointerEntered(PointerEventArgs e) { } /// - /// Called before the event occurs. + /// Invoked when an unhandled reaches an element in its + /// route that is derived from this class. Implement this method to add class handling + /// for this event. /// - /// The event args. + /// Data about the event. protected virtual void OnPointerExited(PointerEventArgs e) { } /// - /// Called before the event occurs. + /// Invoked when an unhandled reaches an element in its + /// route that is derived from this class. Implement this method to add class handling + /// for this event. /// - /// The event args. + /// Data about the event. protected virtual void OnPointerMoved(PointerEventArgs e) { } + /// - /// Called before the event occurs. + /// Invoked when an unhandled reaches an element in its + /// route that is derived from this class. Implement this method to add class handling + /// for this event. /// - /// The event args. + /// Data about the event. protected virtual void OnPointerPressed(PointerPressedEventArgs e) { } /// - /// Called before the event occurs. + /// Invoked when an unhandled reaches an element in its + /// route that is derived from this class. Implement this method to add class handling + /// for this event. /// - /// The event args. + /// Data about the event. protected virtual void OnPointerReleased(PointerReleasedEventArgs e) { } @@ -653,18 +674,22 @@ namespace Avalonia.Input } /// - /// Called before the event occurs. + /// Invoked when an unhandled reaches an element in its + /// route that is derived from this class. Implement this method to add class handling + /// for this event. /// - /// The event args. + /// Data about the event. protected virtual void OnPointerCaptureLost(PointerCaptureLostEventArgs e) { } /// - /// Called before the event occurs. + /// Invoked when an unhandled reaches an element in its + /// route that is derived from this class. Implement this method to add class handling + /// for this event. /// - /// The event args. + /// Data about the event. protected virtual void OnPointerWheelChanged(PointerWheelEventArgs e) { } diff --git a/src/Avalonia.Controls.ColorPicker/ColorPreviewer/ColorPreviewer.cs b/src/Avalonia.Controls.ColorPicker/ColorPreviewer/ColorPreviewer.cs index 58702ecb61..6433e37783 100644 --- a/src/Avalonia.Controls.ColorPicker/ColorPreviewer/ColorPreviewer.cs +++ b/src/Avalonia.Controls.ColorPicker/ColorPreviewer/ColorPreviewer.cs @@ -96,7 +96,7 @@ namespace Avalonia.Controls.Primitives } /// - /// Called before the event occurs. + /// Raises the event. /// /// The defining old/new colors. protected virtual void OnColorChanged(ColorChangedEventArgs e) diff --git a/src/Avalonia.Controls.ColorPicker/ColorSlider/ColorSlider.cs b/src/Avalonia.Controls.ColorPicker/ColorSlider/ColorSlider.cs index 5ee8136d26..54f7a716c9 100644 --- a/src/Avalonia.Controls.ColorPicker/ColorSlider/ColorSlider.cs +++ b/src/Avalonia.Controls.ColorPicker/ColorSlider/ColorSlider.cs @@ -475,7 +475,7 @@ namespace Avalonia.Controls.Primitives } /// - /// Called before the event occurs. + /// Raises the event. /// /// The defining old/new colors. protected virtual void OnColorChanged(ColorChangedEventArgs e) diff --git a/src/Avalonia.Controls.ColorPicker/ColorView/ColorView.cs b/src/Avalonia.Controls.ColorPicker/ColorView/ColorView.cs index 7674b74b6a..100430d74f 100644 --- a/src/Avalonia.Controls.ColorPicker/ColorView/ColorView.cs +++ b/src/Avalonia.Controls.ColorPicker/ColorView/ColorView.cs @@ -286,7 +286,7 @@ namespace Avalonia.Controls } /// - /// Called before the event occurs. + /// Raises the event. /// /// The defining old/new colors. protected virtual void OnColorChanged(ColorChangedEventArgs e) diff --git a/src/Avalonia.Controls/Control.cs b/src/Avalonia.Controls/Control.cs index f24cd1943d..e27a6c5c38 100644 --- a/src/Avalonia.Controls/Control.cs +++ b/src/Avalonia.Controls/Control.cs @@ -352,7 +352,7 @@ namespace Avalonia.Controls } /// - /// Invoked just before the event. + /// Raises the event. /// /// The event args. protected virtual void OnLoaded(RoutedEventArgs e) @@ -361,7 +361,7 @@ namespace Avalonia.Controls } /// - /// Invoked just before the event. + /// Raises the event. /// /// The event args. protected virtual void OnUnloaded(RoutedEventArgs e) @@ -370,7 +370,7 @@ namespace Avalonia.Controls } /// - /// Invoked just before the event. + /// Raises the event. /// /// The event args. protected virtual void OnSizeChanged(SizeChangedEventArgs e) diff --git a/src/Avalonia.Controls/Expander.cs b/src/Avalonia.Controls/Expander.cs index 4f0070dbe7..aeee9f07ea 100644 --- a/src/Avalonia.Controls/Expander.cs +++ b/src/Avalonia.Controls/Expander.cs @@ -181,7 +181,7 @@ namespace Avalonia.Controls } /// - /// Invoked just before the event. + /// Raises the event. /// protected virtual void OnCollapsed(RoutedEventArgs eventArgs) { @@ -189,7 +189,7 @@ namespace Avalonia.Controls } /// - /// Invoked just before the event. + /// Raises the event. /// protected virtual void OnCollapsing(CancelRoutedEventArgs eventArgs) { @@ -197,7 +197,7 @@ namespace Avalonia.Controls } /// - /// Invoked just before the event. + /// Raises the event. /// protected virtual void OnExpanded(RoutedEventArgs eventArgs) { @@ -205,7 +205,7 @@ namespace Avalonia.Controls } /// - /// Invoked just before the event. + /// Raises the event. /// protected virtual void OnExpanding(CancelRoutedEventArgs eventArgs) { diff --git a/src/Avalonia.Controls/MenuItem.cs b/src/Avalonia.Controls/MenuItem.cs index bff06e898e..1a4b4974b2 100644 --- a/src/Avalonia.Controls/MenuItem.cs +++ b/src/Avalonia.Controls/MenuItem.cs @@ -466,9 +466,11 @@ namespace Avalonia.Controls } /// - /// Called when the is clicked. + /// Invoked when an unhandled reaches an element in its + /// route that is derived from this class. Implement this method to add class handling + /// for this event. /// - /// The click event args. + /// Data about the event. protected virtual void OnClick(RoutedEventArgs e) { (var command, var parameter) = (Command, CommandParameter); @@ -507,9 +509,11 @@ namespace Avalonia.Controls } /// - /// Called when a submenu is opened on this MenuItem or a child MenuItem. + /// Invoked when an unhandled reaches an element in its + /// route that is derived from this class. Implement this method to add class handling + /// for this event. /// - /// The event args. + /// Data about the event. protected virtual void OnSubmenuOpened(RoutedEventArgs e) { var menuItem = e.Source as MenuItem; diff --git a/src/Avalonia.Controls/Primitives/Thumb.cs b/src/Avalonia.Controls/Primitives/Thumb.cs index 444b026ce1..5338d6f63d 100644 --- a/src/Avalonia.Controls/Primitives/Thumb.cs +++ b/src/Avalonia.Controls/Primitives/Thumb.cs @@ -54,14 +54,32 @@ namespace Avalonia.Controls.Primitives protected override AutomationPeer OnCreateAutomationPeer() => new ThumbAutomationPeer(this); + /// + /// Invoked when an unhandled reaches an element in its + /// route that is derived from this class. Implement this method to add class handling + /// for this event. + /// + /// Data about the event. protected virtual void OnDragStarted(VectorEventArgs e) { } + /// + /// Invoked when an unhandled reaches an element in its + /// route that is derived from this class. Implement this method to add class handling + /// for this event. + /// + /// Data about the event. protected virtual void OnDragDelta(VectorEventArgs e) { } + /// + /// Invoked when an unhandled reaches an element in its + /// route that is derived from this class. Implement this method to add class handling + /// for this event. + /// + /// Data about the event. protected virtual void OnDragCompleted(VectorEventArgs e) { }