ScriptEventHandler Delegate

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets a reference to the JavaScript object that raised the event.

Namespace:  System.Windows.Browser
Assembly:  System.Windows.Browser (in System.Windows.Browser.dll)

Syntax

'Declaration
Public Delegate Sub ScriptEventHandler ( _
    sender As ScriptObject, _
    args As ScriptObject _
)
public delegate void ScriptEventHandler(
    ScriptObject sender,
    ScriptObject args
)

Parameters

Remarks

ASP.NET AJAX behaviors and controls have a common event signature:

  • The first parameter is a reference to the ASP.NET AJAX control or behavior that raised the event.

  • The second parameter is an arbitrary complex type.

You could create a custom event delegate to provide this functionality. Because this is a common need, the ScriptEventHandler class is provided as a convenience.

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.