New to Telerik UI for WPFStart a free 30-day trial

Represents an ordered and observable collection of UIElements.

Definition

Namespace:Telerik.Windows.Controls.Carousel

Assembly:Telerik.Windows.Controls.Navigation.dll

Syntax:

C#
public class ObservableUIElementCollection : UIElementCollection, INotifyCollectionChanged

Inheritance: objectObservableUIElementCollection

Implements: INotifyCollectionChanged

Constructors

Initializes a new instance of the ObservableUIElementCollection class.

C#
public ObservableUIElementCollection(UIElement visualParent, FrameworkElement logicalParent)
Parameters:visualParentUIElement

The UIElement parent of the collection.

logicalParentFrameworkElement

The logical parent of the elements in the collection.

Properties

UIElement

Gets or sets the UIElement at the specified index.

C#
public override UIElement this[int index] { get; set; }
Parameters:indexint

Methods

Adds the specified element to the UIElementCollection.

C#
public override int Add(UIElement element)
Parameters:elementUIElement

The UIElement to add.

Returns:

int

The index position of the added element.

Removes all elements from a UIElementCollection.

C#
public override void Clear()

Inserts an element into a UIElementCollection at the specified index position.

C#
public override void Insert(int index, UIElement element)
Parameters:indexint

The index position where you want to insert the element.

elementUIElement

The element to insert into the UIElementCollection.

Raises the event.

C#
protected void OnCollectionChanged(NotifyCollectionChangedEventArgs e)
Parameters:eNotifyCollectionChangedEventArgs

The NotifyCollectionChangedEventArgs instance containing the event data.

Removes the specified element from a UIElementCollection.

C#
public override void Remove(UIElement element)
Parameters:elementUIElement

The element to remove from the collection.

Removes the UIElement at the specified index.

C#
public override void RemoveAt(int index)
Parameters:indexint

The index of the UIElement that you want to remove.

Removes a range of elements from a UIElementCollection.

C#
public override void RemoveRange(int index, int count)
Parameters:indexint

The index position of the element where removal begins.

countint

The number of elements to remove.

Events

Occurs when the collection changes.

C#
public event NotifyCollectionChangedEventHandler CollectionChanged

Implements: INotifyCollectionChanged.CollectionChanged