GoToStateAction 類別
叫用此動作可將 FrameworkElement 切換為指定的 VisualState。
命名空間: Microsoft.Expression.Interactivity.Core
組件: Microsoft.Expression.Interactions (在 microsoft.expression.interactions.dll 中)
語法
'宣告
Public Class GoToStateAction
Inherits TargetedTriggerAction(Of FrameworkElement)
'用途
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>
備註
如果已設定 TargetName 屬性,此動作會嘗試變更目標元素的狀態。如果未設定,它會查看元素樹狀目錄,以嘗試找出定義狀態的替代目標。ControlTemplate 和 UserControl 是兩個常見的可能目標。
繼承階層
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
執行緒安全性
此型別的所有公用靜態 (Visual Basic 中為 Shared ) 成員均為安全執行緒。任何例項成員則不保證為安全執行緒。
另請參閱
參照
GoToStateAction 成員
Microsoft.Expression.Interactivity.Core 命名空間