BehaviorCollection 類別

代表含有共用 AssociatedObject 的行為集合,並在該 AssociatedObject 變更時提供變更通知給其內容。

命名空間: System.Windows.Interactivity
組件: System.Windows.Interactivity (在 system.windows.interactivity.dll 中)

語法

'宣告
Public NotInheritable Class BehaviorCollection
    Inherits AttachableCollection(Of Behavior)
'用途
Dim instance As BehaviorCollection
public sealed class BehaviorCollection : AttachableCollection<Behavior>
public ref class BehaviorCollection sealed : public AttachableCollection<Behavior^>
public final class BehaviorCollection extends AttachableCollection<Behavior>
public final class BehaviorCollection extends AttachableCollection<Behavior>

繼承階層

System.Object
System.Windows.Threading.DispatcherObject
System.Windows.DependencyObject
System.Windows.Freezable
System.Windows.Media.Animation.Animatable
System.Windows.FreezableCollection
System.Windows.Interactivity.AttachableCollection
System.Windows.Interactivity.BehaviorCollection

執行緒安全性

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

另請參閱

參照

BehaviorCollection 成員
System.Windows.Interactivity 命名空間