NoesisGUI

ObservableCollection Class

namespace Noesis

Represents a dynamic data collection that provides notifications when items get added or removed.

It is frequently used in data binding to display a collection of records within an ItemsControl such as a ListBox, ListView or TreeView.

<ListBox Width="200"
    ItemsSource="{Binding Source={StaticResource NameListData}}"
    ItemTemplate="{StaticResource NameItemTemplate}" />

Inheritance Hierarchy

ObservableCollection

INDEX Class Hierarchy Index

Properties

ObservableCollection has no properties

Methods

Name Description
Add Adds an item to the collection. Returns The position into which the new element was inserted, or -1 to indicate that the item was not inserted into the collection
Contains Determines whether the collection contains a specific value
Get Gets the element at the specified index
IndexOf Determines the index of a specific item in the collection. Returns -1 if not found
Insert Inserts an item to the collection at the specified index
Remove Removes the first occurrence of a specific object from the collection. Returns true if item was removed, false to indicate that the item was not found in the collection
Set Sets the element at the specified index

Events

ObservableCollection has no events

© 2017 Noesis Technologies