Intersoft.Client.Framework Namespace > EventManager Class : RegisterRoutedEvent Method |
Registers a new routed event with the ClientUI event architecture.
Public Shared Function RegisterRoutedEvent( _ ByVal name As String, _ ByVal routingStrategy As RoutingStrategy, _ ByVal handlerType As Type, _ ByVal ownerType As Type _ ) As RoutedEvent
Dim name As String Dim routingStrategy As RoutingStrategy Dim handlerType As Type Dim ownerType As Type Dim value As RoutedEvent value = EventManager.RegisterRoutedEvent(name, routingStrategy, handlerType, ownerType)
public static RoutedEvent RegisterRoutedEvent( string name, RoutingStrategy routingStrategy, Type handlerType, Type ownerType )
public: static RoutedEvent^ RegisterRoutedEvent( String^ name, RoutingStrategy routingStrategy, Type^ handlerType, Type^ ownerType )
Use the return value of this method to create the static declaration for a unique RoutedEvent identifier field. This field should be stored within the owner type.
There are a considerable number of conventions and best practices associated with how routed events should be named, registered, and exposed in a class. For more information, see Routed Events Overview.
Target Platforms: 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