Table of Contents

Method RegisterRoutedEvent

Namespace
Alternet.UI
Assembly
Alternet.UI.dll

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 string

Name

routingStrategy RoutingStrategy

RoutingStrategy

handlerType Type

HandlerType

ownerType Type

OwnerType

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 null

NOTE: Caller must be the static constructor of the OwnerType - enforced by stack walk