RemoveElementAction 類別

叫用時會從樹狀目錄移除目標元素的動作。

命名空間: Microsoft.Expression.Interactivity.Core
組件: Microsoft.Expression.Interactions (在 microsoft.expression.interactions.dll 中)

語法

'宣告
Public Class RemoveElementAction
    Inherits TargetedTriggerAction(Of FrameworkElement)
'用途
Dim instance As RemoveElementAction
public class RemoveElementAction : TargetedTriggerAction<FrameworkElement>
public ref class RemoveElementAction : public TargetedTriggerAction<FrameworkElement^>
public class RemoveElementAction extends TargetedTriggerAction<FrameworkElement>
public class RemoveElementAction extends TargetedTriggerAction<FrameworkElement>

備註

此動作可能會失敗。該動作知道如何從共同父項移除元素,而不是從自訂集合或直接操作視覺化樹狀目錄。

繼承階層

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.RemoveElementAction

執行緒安全性

此型別的所有公用靜態 (Visual Basic 中為 Shared ) 成員均為安全執行緒。任何例項成員則不保證為安全執行緒。

另請參閱

參照

RemoveElementAction 成員
Microsoft.Expression.Interactivity.Core 命名空間