BehaviorCollection Class

Represents a collection of behaviors with a shared AssociatedObject and provides change notifications to its contents when that AssociatedObject changes.

Namespace: System.Windows.Interactivity
Assembly: System.Windows.Interactivity (in system.windows.interactivity.dll)

Syntax

'Declaration
Public NotInheritable Class BehaviorCollection
    Inherits AttachableCollection(Of Behavior)
'Usage
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>

Inheritance Hierarchy

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

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

BehaviorCollection Members
System.Windows.Interactivity Namespace