Click or drag to resize
Cimbalino ToolkitObjectExtensionsAddEventHandler Method
Adds an event handler to an event source.

Namespace: Cimbalino.Toolkit.Extensions
Assembly: Cimbalino.Toolkit.Core (in Cimbalino.Toolkit.Core.dll) Version: 2.2.1.0 (2.2.1.0)
Syntax
C#
public static Delegate AddEventHandler(
	this Object obj,
	string target,
	Delegate handler
)

Parameters

obj
Type: SystemObject
The object.
target
Type: SystemString
The event source.
handler
Type: SystemDelegate
Encapsulation of a method or methods to be invoked when the event is raised by the target.

Return Value

Type: Delegate
Returns a Delegate to the attached event handler.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Object. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Version Information

Windows Phone Silverlight

Supported in: 8.1, 8.0
See Also