Method RegisterRoutedEvent
RegisterRoutedEvent(string, RoutingStrategy, Type, Type)
Registers a RoutedEvent with the given parameters
public static RoutedEvent RegisterRoutedEvent(string name, RoutingStrategy routingStrategy, Type handlerType, Type ownerType)
Parameters
name
stringroutingStrategy
RoutingStrategyhandlerType
TypeownerType
Type
Returns
- RoutedEvent
The new registered RoutedEvent
Remarks
Name must be unique within the OwnerType (super class types not considered when talking about uniqueness) and cannot be null
HandlerType must be a type of delegate and cannot be null OwnerType must be any object type and cannot be nullNOTE: Caller must be the static constructor of the OwnerType - enforced by stack walk