Class BehaviorCollection
Represents a collection of behaviors with a shared AssociatedObject and provides change notifications to its contents when that AssociatedObject changes.
Inheritance
System.Object
BehaviorCollection
Implements
System.Collections.Generic.IList<Behavior>
System.Collections.Generic.ICollection<Behavior>
System.Collections.Generic.IEnumerable<Behavior>
System.Collections.IList
System.Collections.ICollection
System.Collections.IEnumerable
System.Collections.Specialized.INotifyCollectionChanged
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: System.Windows.Interactivity
Assembly: OpenSilver.Interactivity.dll
Syntax
public sealed class BehaviorCollection : AttachableCollection<Behavior>, IList<Behavior>, ICollection<Behavior>, IEnumerable<Behavior>, IList, ICollection, IEnumerable, INotifyCollectionChanged, IAttachedObject
Methods
| Improve this Doc View SourceOnAttached()
Called immediately after the collection is attached to an AssociatedObject.
Declaration
protected override void OnAttached()
Overrides
System.Windows.Interactivity.AttachableCollection<System.Windows.Interactivity.Behavior>.OnAttached()
|
Improve this Doc
View Source
OnDetaching()
Called when the collection is being detached from its AssociatedObject, but before it has actually occurred.
Declaration
protected override void OnDetaching()
Overrides
System.Windows.Interactivity.AttachableCollection<System.Windows.Interactivity.Behavior>.OnDetaching()
Implements
System.Collections.Generic.IList<T>
System.Collections.Generic.ICollection<T>
System.Collections.Generic.IEnumerable<T>
System.Collections.IList
System.Collections.ICollection
System.Collections.IEnumerable
System.Collections.Specialized.INotifyCollectionChanged