Share via


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 命名空间