Show / Hide Table of Contents

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
DependencyObject
DependencyObjectCollection<Behavior>
AttachableCollection<Behavior>
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
IAttachedObject
Inherited Members
AttachableCollection<Behavior>.AssociatedObject
AttachableCollection<Behavior>.IAttachedObject.AssociatedObject
AttachableCollection<Behavior>.Attach(DependencyObject)
AttachableCollection<Behavior>.Detach()
DependencyObjectCollection<Behavior>.CollectionChanged
DependencyObjectCollection<Behavior>.Item[Int32]
DependencyObjectCollection<Behavior>.Count
DependencyObjectCollection<Behavior>.IsReadOnly
DependencyObjectCollection<Behavior>.Add(Behavior)
DependencyObjectCollection<Behavior>.Clear()
DependencyObjectCollection<Behavior>.Contains(Behavior)
DependencyObjectCollection<Behavior>.GetEnumerator()
DependencyObjectCollection<Behavior>.IndexOf(Behavior)
DependencyObjectCollection<Behavior>.Insert(Int32, Behavior)
DependencyObjectCollection<Behavior>.Remove(Behavior)
DependencyObjectCollection<Behavior>.RemoveAt(Int32)
DependencyObjectCollection<Behavior>.CopyTo(Behavior[], Int32)
DependencyObjectCollection<Behavior>.IList.Item[Int32]
DependencyObjectCollection<Behavior>.IList.IsFixedSize
DependencyObjectCollection<Behavior>.ICollection.SyncRoot
DependencyObjectCollection<Behavior>.ICollection.IsSynchronized
DependencyObjectCollection<Behavior>.ICollection.CopyTo(Array, Int32)
DependencyObjectCollection<Behavior>.IList.Add(Object)
DependencyObjectCollection<Behavior>.IList.Contains(Object)
DependencyObjectCollection<Behavior>.IList.IndexOf(Object)
DependencyObjectCollection<Behavior>.IList.Insert(Int32, Object)
DependencyObjectCollection<Behavior>.IList.Remove(Object)
DependencyObjectCollection<Behavior>.IEnumerable.GetEnumerator()
DependencyObject.GetValue(DependencyProperty)
DependencyObject.SetCurrentValue(DependencyProperty, Object)
DependencyObject.ReadLocalValue(DependencyProperty)
DependencyObject.SetValue(DependencyProperty, Object)
DependencyObject.SetValue(DependencyPropertyKey, Object)
DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs)
DependencyObject.CoerceValue(DependencyProperty)
DependencyObject.Dispatcher
DependencyObject.INTERNAL_OnAttachedToVisualTree()
DependencyObject.INTERNAL_OnDetachedFromVisualTree()
DependencyObject.ClearValue(DependencyProperty)
DependencyObject.ClearValue(DependencyPropertyKey)
DependencyObject.CheckAccess()
DependencyObject.GetAnimationBaseValue(DependencyProperty)
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>, IDependencyObject, IList<Behavior>, ICollection<Behavior>, IEnumerable<Behavior>, IList, ICollection, IEnumerable, INotifyCollectionChanged, IAttachedObject

Methods

| Improve this Doc View Source

OnAttached()

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
IAttachedObject

Extension Methods

DependencyObjectHelper.GetSelfAndAncestors(DependencyObject)
VisualTreeExtensions.GetVisualAncestors(DependencyObject)
VisualTreeExtensions.GetVisualAncestorsAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualChildren(DependencyObject)
VisualTreeExtensions.GetVisualChildrenAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualDescendants(DependencyObject)
VisualTreeExtensions.GetVisualDescendantsAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualSiblings(DependencyObject)
VisualTreeExtensions.GetVisualSiblingsAndSelf(DependencyObject)
  • Improve this Doc
  • View Source