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: (
public static Delegate AddEventHandler(
	this Object obj,
	string target,
	Delegate handler


Type: SystemObject
The object.
Type: SystemString
The event source.
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