C# Class Dev2.Studio.Dock.UiElementHelper

Static class for dealing with UIElement related members.
ファイルを表示 Open project: Warewolf-ESB/Warewolf Class Usage Examples

Public Methods

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

Adds a handler for the specified event on the specified element

RaiseEvent ( DependencyObject element, RoutedEventArgs e ) : void

Raises an event for the specified event arguments on the specified element

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

Removes a handler for the specified event on the specified element

Method Details

AddHandler() public static method

Adds a handler for the specified event on the specified element
public static AddHandler ( DependencyObject element, System.Windows.RoutedEvent routedEvent, Delegate handler ) : void
element System.Windows.DependencyObject The element that listens to the event
routedEvent System.Windows.RoutedEvent The event to listen for
handler System.Delegate The delegate to add
return void

RaiseEvent() public static method

Raises an event for the specified event arguments on the specified element
public static RaiseEvent ( DependencyObject element, RoutedEventArgs e ) : void
element System.Windows.DependencyObject The element that listens to the event
e System.Windows.RoutedEventArgs The arguments for the routed event to be raised
return void

RemoveHandler() public static method

Removes a handler for the specified event on the specified element
public static RemoveHandler ( DependencyObject element, System.Windows.RoutedEvent routedEvent, Delegate handler ) : void
element System.Windows.DependencyObject The element that listens to the event
routedEvent System.Windows.RoutedEvent The event to unhook from
handler System.Delegate The delegate to remove
return void