Represents an ordered and observable collection of UIElements.
Definition
Namespace:Telerik.Windows.Controls.Carousel
Assembly:Telerik.Windows.Controls.Navigation.dll
Syntax:
public class ObservableUIElementCollection : UIElementCollection, INotifyCollectionChanged
Inheritance: objectObservableUIElementCollection
Implements:
Constructors
Initializes a new instance of the ObservableUIElementCollection class.
public ObservableUIElementCollection(UIElement visualParent, FrameworkElement logicalParent)
The UIElement parent of the collection.
logicalParentFrameworkElementThe logical parent of the elements in the collection.
Properties
Methods
Adds the specified element to the UIElementCollection.
public override int Add(UIElement element)
The UIElement to add.
Returns:The index position of the added element.
Removes all elements from a UIElementCollection.
public override void Clear()
Inserts an element into a UIElementCollection at the specified index position.
public override void Insert(int index, UIElement element)
The index position where you want to insert the element.
elementUIElementThe element to insert into the UIElementCollection.
Raises the event.
protected void OnCollectionChanged(NotifyCollectionChangedEventArgs e)
The NotifyCollectionChangedEventArgs instance containing the event data.
Removes the specified element from a UIElementCollection.
public override void Remove(UIElement element)
The element to remove from the collection.
Removes the UIElement at the specified index.
public override void RemoveAt(int index)
The index of the UIElement that you want to remove.
Events
Occurs when the collection changes.
public event NotifyCollectionChangedEventHandler CollectionChanged
Implements: