An event handler is a script that executes when a certain event occurs. For example, an event occurs when the user presses the mouse button while the cursor is over a control.
Some event handlers require event-specific information. For example, the OnMouseMove control event may need to know the position of the mouse. DataHub WebView uses the general events infrastructure for Microsoft Silverlight, but uses a different event handler mechanism. For most events, rather than requiring event handlers to expect function arguments, DataHub WebView exposes intrinsic objects.
| Event Type | Event Arguments |
|---|---|
| Element Events | Accessed via intrinsic objects: Element, ElementData, Me, EventName and EventArgs. |
| Page Events | Accessed via intrinsic objects: Page and EventName. |
| Application Events | Passed as function arguments. Application event handlers are coded as complete script functions (typically in a .ss file). The Application_UserChanged event handler must be coded to expect the name of the user as a function argument. Intrinsic objects are not available. |
