Share via


GoToStateAction Class

An action that will transition a FrameworkElement to a specified VisualState when invoked.

Namespace: Microsoft.Expression.Interactivity.Core
Assembly: Microsoft.Expression.Interactions (in microsoft.expression.interactions.dll)

Syntax

'Declaration
Public Class GoToStateAction
    Inherits TargetedTriggerAction(Of FrameworkElement)
'Usage
Dim instance As GoToStateAction
public class GoToStateAction : TargetedTriggerAction<FrameworkElement>
public ref class GoToStateAction : public TargetedTriggerAction<FrameworkElement^>
public class GoToStateAction extends TargetedTriggerAction<FrameworkElement>
public class GoToStateAction extends TargetedTriggerAction<FrameworkElement>

Remarks

If the TargetName property is set, this action will attempt to change the state of the targeted element. If not, it walks the element tree in an attempt to locate an alternative target that defines states. ControlTemplate and UserControl are two common possibilities.

Inheritance Hierarchy

System.Object
   System.Windows.Threading.DispatcherObject
     System.Windows.DependencyObject
       System.Windows.Freezable
         System.Windows.Media.Animation.Animatable
           System.Windows.Interactivity.TriggerAction
             System.Windows.Interactivity.TargetedTriggerAction
               System.Windows.Interactivity.TargetedTriggerAction
                Microsoft.Expression.Interactivity.Core.GoToStateAction

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

GoToStateAction Members
Microsoft.Expression.Interactivity.Core Namespace