C# Class Windows.UI.Interactivity.TriggerAction

Represents an attachable object that encapsulates a unit of functionality.
This is an infrastructure class. Action authors should derive from TriggerAction<T> instead of this class.
Inheritance: InteractivityBase
ファイルを表示 Open project: jlaanstra/Windows.UI.Interactivity Class Usage Examples

Public Properties

Property Type Description
IsEnabledProperty Windows.UI.Xaml.DependencyProperty

Private Properties

Property Type Description
CallInvoke void
TriggerAction System

Public Methods

Method Description
Attach ( FrameworkElement frameworkElement ) : void

Attaches to the specified object.

Detach ( ) : void

Detaches this instance from its associated object.

Protected Methods

Method Description
Invoke ( object parameter ) : void

Invokes the action.

Private Methods

Method Description
CallInvoke ( object parameter ) : void

Attempts to invoke the action.

TriggerAction ( Type associatedObjectTypeConstraint ) : System

Method Details

Attach() public method

Attaches to the specified object.
Cannot host the same TriggerAction on more than one object at a time. dependencyObject does not satisfy the TriggerAction type constraint.
public Attach ( FrameworkElement frameworkElement ) : void
frameworkElement Windows.UI.Xaml.FrameworkElement The object to attach to.
return void

Detach() public method

Detaches this instance from its associated object.
public Detach ( ) : void
return void

Invoke() protected abstract method

Invokes the action.
protected abstract Invoke ( object parameter ) : void
parameter object The parameter to the action. If the action does not require a parameter, the parameter may be set to a null reference.
return void

Property Details

IsEnabledProperty public_oe static_oe property

public static DependencyProperty,Windows.UI.Xaml IsEnabledProperty
return Windows.UI.Xaml.DependencyProperty