Class EventManager
Implements routed event registering methods and hold class handlers
Inheritance
System.Object
EventManager
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: EmptyKeys.UserInterface
Assembly: EmptyKeys.UserInterface.dll
Syntax
public static class EventManager
Methods
RegisterClassHandler(Type, RoutedEvent, Delegate)
Registers the class handler.
Declaration
public static void RegisterClassHandler(Type classType, RoutedEvent routedEvent, Delegate handler)
Parameters
Type | Name | Description |
---|---|---|
System.Type | classType | Type of the class. |
RoutedEvent | routedEvent | The routed event. |
System.Delegate | handler | The handler. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | classType or routedEvent or handler |
System.ArgumentException | Wrong classType. Only types based on UIElement are allowed. |
RegisterRoutedEvent(String, RoutingStrategy, Type, Type)
Registers the routed event.
Declaration
public static RoutedEvent RegisterRoutedEvent(string name, RoutingStrategy routingStrategy, Type handlerType, Type ownerType)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name. |
RoutingStrategy | routingStrategy | The routing strategy. |
System.Type | handlerType | Type of the handler. |
System.Type | ownerType | Type of the owner. |
Returns
Type | Description |
---|---|
RoutedEvent |