The Event Monitor tracks the events that are raised by the Silverlight user interface in real-time. The monitor supports event filtering to limit the number of events.

To display the Event Monitor, select Event Monitor from the View menu.

Figure 1:Event Monitor

Event Monitor

The Event Monitor automatically starts monitoring UI events when a Silverlight application has been loaded. A green row indicates that the routed event has been handled. A handled event will generally not be routed to the next object along the event route. Double click a row in the event list to select the associated source UI element in the explorer and browser pane.

In order to conserve resources, monitoring is automatically paused when the Event Monitor pane is hidden.

Use the buttons of the Event Monitor toolbar to copy the entire event log to the clipboard, clear the monitor list, adjust the event filter, and to start or stop the monitoring.

A single row in the event list consists of the following columns:

Column Description
Id Uniquely identifies the event.
Time The time the event was raised.
Source The source UI element that raised the event.
Type The type of the event.
Data A summary of the event details extracted from the event arguments.

Filtering Events

The UI events are filtered based on the event type. The event type filter can be adjusted by selecting the filter button in the toolbar. The Event Filter dialog is shown as is displayed below.

Figure 2:Event Filter
Note:

Changes applied to the event filter are saved to the Silverlight Spy configuration file. When Silverlight Spy is restarted, the event filter changes remain effective.

See Also