This documentation is archived and is not being maintained.
EventManager Class
Visual Studio 2010
Provides event-related utility methods that register routed events for class owners and add class handlers.
Assembly: PresentationCore (in PresentationCore.dll)
The EventManager type exposes the following members.
| Name | Description | |
|---|---|---|
![]() ![]() | GetRoutedEvents | Returns identifiers for routed events that have been registered to the event system. |
![]() ![]() | GetRoutedEventsForOwner | Finds all routed event identifiers for events that are registered with the provided owner type. |
![]() ![]() | RegisterClassHandler(Type, RoutedEvent, Delegate) | Registers a class handler for a particular routed event. |
![]() ![]() | RegisterClassHandler(Type, RoutedEvent, Delegate, Boolean) | Registers a class handler for a particular routed event, with the option to handle events where event data is already marked handled. |
![]() ![]() | RegisterRoutedEvent | Registers a new routed event with the Windows Presentation Foundation (WPF) event system. |
This class is most commonly used to register a new routed event, with RegisterRoutedEvent.
The second most common API usage is RegisterClassHandler. You use this method to enable class handling of a routed event on the class, or an attached event. For details, see Marking Routed Events as Handled, and Class Handling.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show:
