ExtendedVisualStateManager.GoToElementState 方法
命名空間: Microsoft.Expression.Interactivity.Core
組件: Microsoft.Expression.Interactions (在 microsoft.expression.interactions.dll 中)
語法
'宣告
Public Shared Function GoToElementState ( _
root As FrameworkElement, _
stateName As String, _
useTransitions As Boolean _
) As Boolean
'用途
Dim root As FrameworkElement
Dim stateName As String
Dim useTransitions As Boolean
Dim returnValue As Boolean
returnValue = ExtendedVisualStateManager.GoToElementState(root, stateName, useTransitions)
public static bool GoToElementState (
FrameworkElement root,
string stateName,
bool useTransitions
)
public:
static bool GoToElementState (
FrameworkElement^ root,
String^ stateName,
bool useTransitions
)
public static boolean GoToElementState (
FrameworkElement root,
String stateName,
boolean useTransitions
)
public static function GoToElementState (
root : FrameworkElement,
stateName : String,
useTransitions : boolean
) : boolean
執行緒安全性
此型別的所有公用靜態 (Visual Basic 中為 Shared ) 成員均為安全執行緒。任何例項成員則不保證為安全執行緒。
另請參閱
參照
ExtendedVisualStateManager 類別
ExtendedVisualStateManager 成員
Microsoft.Expression.Interactivity.Core 命名空間