Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

PerformAction

Silverlight

Occurs when the accessibility technology invokes an action.

[token = ]object.AddEventListener("PerformAction", eventhandlerFunction)

AddEventListener Parameters

token

integer

A token that is returned from the function, which you can optionally retain as a variable. If you intend to call RemoveEventListener to remove the handler, you will need this token.

eventhandlerFunction

object

The name of your event handler function as it is defined in script. Quotation marks around the function name are not required. (See the "Remarks" section.)

Event Handler Parameters

sender

object

The object that invoked the event.

eventArgs

object

This parameter is always set to null.

None. The managed API uses an entirely updated accessibility system. See Silverlight Accessibility Overview.

You can also add handlers in script by using a quoted string for the event handler name, as follows:

object.addEventListener("PerformAction", "eventhandlerFunction")

This syntax also returns a token. However, the token is not an absolute requirement for removing the handler in cases where the handler was added by using a quoted string. For details, see RemoveEventListener.

Community Additions

ADD
Show:
© 2015 Microsoft