Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

MouseButtonEventArgs.InvokeEventHandler Method (Delegate, Object)

 

Invokes event handlers in a type-specific way, which can increase event system efficiency.

Namespace:   System.Windows.Input
Assembly:  PresentationCore (in PresentationCore.dll)

protected override void InvokeEventHandler(
	Delegate genericHandler,
	object genericTarget
)

Parameters

genericHandler
Type: System.Delegate

The generic handler to call in a type-specific way.

genericTarget
Type: System.Object

The target to call the handler on.

This implementation casts the generic handler as a MouseEventHandler and then invokes it. For details on this implementation pattern and the reasons for it, see InvokeEventHandler and Routed Events Overview.

.NET Framework
Available since 3.0
Return to top
Show:
© 2016 Microsoft