Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
Silverlight 3
 ScriptEventHandler Delegate
Collapse All/Expand All Collapse All
.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)
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.

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.

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

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker