C# Class Windows.UI.Interactivity.FrameworkElementExtensions

ファイルを表示 Open project: jlaanstra/Windows.UI.Interactivity

Public Methods

Method Description
AddDataContextChangedHandler ( this element, EventHandler handler ) : void

Adds the data context changed handler.

RemoveDataContextChangedHandler ( this element, EventHandler handler ) : void

Removes the data context changed handler.

Private Methods

Method Description
OnInheritedDataContextChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

Handles changes to the InheritedDataContext DependencyProperty.

Method Details

AddDataContextChangedHandler() public static method

Adds the data context changed handler.
public static AddDataContextChangedHandler ( this element, EventHandler handler ) : void
element this Element to which the handler is added
handler EventHandler The handler to add
return void

RemoveDataContextChangedHandler() public static method

Removes the data context changed handler.
public static RemoveDataContextChangedHandler ( this element, EventHandler handler ) : void
element this The element from which the handler has to be removed
handler EventHandler The handler to remove
return void