Ejemplo n.º 1
0
 /// <summary>
 /// Finds the routed event with the specified name.
 /// </summary>
 /// <param name="name">The name of the routed event for which to search.</param>
 /// <param name="ownerType">The routed event's owner type.</param>
 /// <returns>A <see cref="RoutedEvent"/> instance which represents the specified routed event,
 /// or <see langword="null"/> if no such routed event exists.</returns>
 public static RoutedEvent FindByName(String name, Type ownerType)
 {
     return(RoutedEventSystem.FindByName(name, ownerType));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Adds a new owning type to this routed event.
 /// </summary>
 /// <param name="ownerType">The owner type to add to this routed event.</param>
 /// <returns>A reference to this routed event instance.</returns>
 public RoutedEvent AddOwner(Type ownerType)
 {
     return(RoutedEventSystem.AddOwner(this, ownerType));
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Registers a new routed event.
 /// </summary>
 /// <param name="name">The routed event's name.</param>
 /// <param name="uvssName">The dependency property's name within the UVSS styling system.</param>
 /// <param name="routingStrategy">The routed event's routing strategy.</param>
 /// <param name="delegateType">The routed event's delegate type.</param>
 /// <param name="ownerType">The routed event's owner type.</param>
 /// <returns>A <see cref="RoutedEvent"/> instance which represents the registered routed event.</returns>
 public static RoutedEvent RegisterRoutedEvent(String name, String uvssName, RoutingStrategy routingStrategy, Type delegateType, Type ownerType)
 {
     return(RoutedEventSystem.Register(name, uvssName, routingStrategy, delegateType, ownerType));
 }