C# Class Windows.UI.Interactivity.Interaction

Static class that owns the Triggers and Behaviors attached properties. Handles propagation of AssociatedObject change notifications.
Show file Open project: jlaanstra/Windows.UI.Interactivity

Public Properties

Property Type Description
BehaviorsProperty Windows.UI.Xaml.DependencyProperty
TriggersProperty Windows.UI.Xaml.DependencyProperty

Public Methods

Method Description
GetBehaviors ( FrameworkElement obj ) : BehaviorCollection

Gets the T:System.Windows.Interactivity.BehaviorCollection associated with a specified object.

GetTriggers ( DependencyObject obj ) : TriggerCollection

Gets the TriggerCollection containing the triggers associated with the specified object.

Private Methods

Method Description
IsElementLoaded ( FrameworkElement element ) : bool

A helper function to take the place of FrameworkElement.IsLoaded, as this property is not available in Silverlight.

OnBehaviorsChanged ( DependencyObject obj, DependencyPropertyChangedEventArgs args ) : void
OnTriggersChanged ( DependencyObject obj, DependencyPropertyChangedEventArgs args ) : void

Method Details

GetBehaviors() public static method

Gets the T:System.Windows.Interactivity.BehaviorCollection associated with a specified object.
public static GetBehaviors ( FrameworkElement obj ) : BehaviorCollection
obj Windows.UI.Xaml.FrameworkElement The object from which to retrieve the .
return BehaviorCollection

GetTriggers() public static method

Gets the TriggerCollection containing the triggers associated with the specified object.
public static GetTriggers ( DependencyObject obj ) : TriggerCollection
obj Windows.UI.Xaml.DependencyObject The object from which to retrieve the triggers.
return TriggerCollection

Property Details

BehaviorsProperty public static property

This property is used as the internal backing store for the public Behaviors attached property.
public static DependencyProperty,Windows.UI.Xaml BehaviorsProperty
return Windows.UI.Xaml.DependencyProperty

TriggersProperty public static property

This property is used as the internal backing store for the public Triggers attached property.
public static DependencyProperty,Windows.UI.Xaml TriggersProperty
return Windows.UI.Xaml.DependencyProperty