ClassObservableUIElementCollection
Represents an ordered and observable collection of UIElements.
Definition
Namespace:Telerik.Windows.Controls.Carousel
Assembly:Telerik.Windows.Controls.Navigation.dll
Syntax:
[SuppressMessage("Microsoft.Design", "CA1010:CollectionsShouldImplementGenericInterface", Justification = "No need in this case.")]
public class ObservableUIElementCollection : UIElementCollection, INotifyCollectionChanged
Inheritance: objectObservableUIElementCollection
Implements:
Constructors
ObservableUIElementCollection(UIElement, FrameworkElement)
Initializes a new instance of the ObservableUIElementCollection class.
Declaration
public ObservableUIElementCollection(UIElement visualParent, FrameworkElement logicalParent)
Parameters
visualParent
UIElement
The UIElement parent of the collection.
logicalParent
FrameworkElement
The logical parent of the elements in the collection.
Properties
Methods
Add(UIElement)
Adds the specified element to the UIElementCollection.
Declaration
public override int Add(UIElement element)
Parameters
element
UIElement
The UIElement to add.
Returns
The index position of the added element.
Clear()
Removes all elements from a UIElementCollection.
Declaration
public override void Clear()
Insert(int, UIElement)
Inserts an element into a UIElementCollection at the specified index position.
Declaration
public override void Insert(int index, UIElement element)
Parameters
index
The index position where you want to insert the element.
element
UIElement
The element to insert into the UIElementCollection.
OnCollectionChanged(NotifyCollectionChangedEventArgs)
Raises the event.
Declaration
protected void OnCollectionChanged(NotifyCollectionChangedEventArgs e)
Parameters
e
NotifyCollectionChangedEventArgs
The NotifyCollectionChangedEventArgs instance containing the event data.
Remove(UIElement)
Removes the specified element from a UIElementCollection.
Declaration
public override void Remove(UIElement element)
Parameters
element
UIElement
The element to remove from the collection.
RemoveAt(int)
Removes the UIElement at the specified index.
Declaration
public override void RemoveAt(int index)
Parameters
index
The index of the UIElement that you want to remove.
RemoveRange(int, int)
Removes a range of elements from a UIElementCollection.
Events
CollectionChanged
Occurs when the collection changes.
Declaration
public event NotifyCollectionChangedEventHandler CollectionChanged
Event Value
Implements