FrameworkContentElement.OnToolTipClosing(ToolTipEventArgs) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Invoked whenever the ToolTipClosing routed event reaches this class in its route. Implement this method to add class handling for this event.
protected:
virtual void OnToolTipClosing(System::Windows::Controls::ToolTipEventArgs ^ e);
protected virtual void OnToolTipClosing (System.Windows.Controls.ToolTipEventArgs e);
abstract member OnToolTipClosing : System.Windows.Controls.ToolTipEventArgs -> unit
override this.OnToolTipClosing : System.Windows.Controls.ToolTipEventArgs -> unit
Protected Overridable Sub OnToolTipClosing (e As ToolTipEventArgs)
Parameters
Provides data about the event.
Remarks
This method has no default implementation. You should still call base() in case an intermediate class in the inheritance has implemented this method.
The purpose of this method is somewhat similar to common language runtime (CLR) event pattern On* methods: it provides the means to handle the matching event from derived classes with a class handler instead of an instance handler. In this case the matching event is a routed event. The implementation pattern of the On* methods is different for routed events because the routed event may have been raised by a child element, not necessarily the element that will invoke handlers, so your implementation will have to take the event arguments' source properties into account (and should not try to re-raise the event in most cases). Subclasses of FrameworkContentElement could choose to call private class handler methods when the event is received along the route. One potential scenario is to take the arguments of the event and deliberately mark the event as handled to shorten the route.