C# Class Glass.Basics.RoutedEventHelper

Afficher le fichier Open project: SuperJMN/Glass

Méthodes publiques

Méthode Description
AddHandler ( DependencyObject element, System.Windows.RoutedEvent routedEvent, Delegate handler ) : void

A static helper method that adds a handler for a routed event to a target UIElement or ContentElement.

RaiseEvent ( DependencyObject target, RoutedEventArgs args ) : void

A static helper method to raise a routed event on a target UIElement or ContentElement.

RemoveHandler ( DependencyObject element, System.Windows.RoutedEvent routedEvent, Delegate handler ) : void

A static helper method that removes a handler for a routed event from a target UIElement or ContentElement.

Method Details

AddHandler() public static méthode

A static helper method that adds a handler for a routed event to a target UIElement or ContentElement.
public static AddHandler ( DependencyObject element, System.Windows.RoutedEvent routedEvent, Delegate handler ) : void
element System.Windows.DependencyObject UIElement or ContentElement that listens to the event
routedEvent System.Windows.RoutedEvent Event that will be handled
handler System.Delegate Event handler to be added
Résultat void

RaiseEvent() public static méthode

A static helper method to raise a routed event on a target UIElement or ContentElement.
public static RaiseEvent ( DependencyObject target, RoutedEventArgs args ) : void
target System.Windows.DependencyObject UIElement or ContentElement on which to raise the event
args System.Windows.RoutedEventArgs RoutedEventArgs to use when raising the event
Résultat void

RemoveHandler() public static méthode

A static helper method that removes a handler for a routed event from a target UIElement or ContentElement.
public static RemoveHandler ( DependencyObject element, System.Windows.RoutedEvent routedEvent, Delegate handler ) : void
element System.Windows.DependencyObject UIElement or ContentElement that listens to the event
routedEvent System.Windows.RoutedEvent Event that will no longer be handled
handler System.Delegate Event handler to be removed
Résultat void