.NET Framework Class Library for Silverlight
ScriptEventHandler Delegate

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

Visual Basic (Declaration)
Public Delegate Sub ScriptEventHandler ( _
    sender As ScriptObject, _
    args As ScriptObject _
)
Visual Basic (Usage)
Dim instance As New ScriptEventHandler(AddressOf HandlerMethod)
C#
public delegate void ScriptEventHandler(
    ScriptObject sender,
    ScriptObject args
)

Parameters

sender
Type: System.Windows.Browser..::.ScriptObject
A reference to the JavaScript object that raised the event.
args
Type: System.Windows.Browser..::.ScriptObject
A reference to the complex type that is passed as an event argument.
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.

Platforms

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

See Also

Reference

Tags :


Page view tracker