Export (0) Print
Expand All

ScriptEventHandler Delegate

Silverlight

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

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

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.

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.

Silverlight

Supported in: 5, 4, 3

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

Community Additions

ADD
Show:
© 2014 Microsoft