SourceCollectionBase<TView,TViewModel> Class Members
The following tables list the members exposed by SourceCollectionBase<TView,TViewModel>.
Protected Constructors
| Name | Description | |
|---|---|---|
![]() | SourceCollectionBase<TView,TViewModel> Constructor | Initializes a new instance of the SourceCollectionBase<TView,TViewModel> class. |
Public Fields
| Name | Description | |
|---|---|---|
![]() ![]() | StyleKeyProperty | Defines the StyleKey DependencyProperty |
Protected Fields
| Name | Description | |
|---|---|---|
![]() ![]() | _resourceDictionary |
Public Properties
| Name | Description | |
|---|---|---|
![]() | Count | Gets the number of elements actually contained in the Collection. (Inherited from System.Collections.ObjectModel.Collection<T>) |
![]() | Item | Gets or sets the element at the specified index. (Inherited from System.Collections.ObjectModel.Collection<T>) |
![]() | ParentSurface | Gets or sets the ParentSurface that this Collection is associated with |
Protected Properties
| Name | Description | |
|---|---|---|
![]() | Items | Gets a IList wrapper around the Collection. (Inherited from System.Collections.ObjectModel.Collection<T>) |
Public Methods
| Name | Description | |
|---|---|---|
![]() | Add | Adds an object to the end of the Collection. (Inherited from System.Collections.ObjectModel.Collection<T>) |
![]() | Clear | Removes all elements from the Collection. (Inherited from System.Collections.ObjectModel.Collection<T>) |
![]() | Contains | Determines whether an element is in the Collection. (Inherited from System.Collections.ObjectModel.Collection<T>) |
![]() | CopyTo | Copies the entire Collection to a compatible one-dimensional System.Array, starting at the specified index of the target array. (Inherited from System.Collections.ObjectModel.Collection<T>) |
![]() | GetEnumerator | Returns an enumerator that iterates through the Collection. (Inherited from System.Collections.ObjectModel.Collection<T>) |
![]() ![]() | GetStyleKey | Gets the StyleKey attached property |
![]() | IndexOf | Searches for the specified object and returns the zero-based index of the first occurrence within the entire Collection. (Inherited from System.Collections.ObjectModel.Collection<T>) |
![]() | Insert | Inserts an element into the Collection at the specified index. (Inherited from System.Collections.ObjectModel.Collection<T>) |
![]() | Move | (Inherited from System.Collections.ObjectModel.ObservableCollection<TView>) |
![]() | RefreshInnerRenderableSeriesCollection | |
![]() | Remove | Removes the first occurrence of a specific object from the Collection. (Inherited from System.Collections.ObjectModel.Collection<T>) |
![]() | RemoveAt | Removes the element at the specified index of the Collection. (Inherited from System.Collections.ObjectModel.Collection<T>) |
![]() ![]() | SetStyleKey | Sets the StyleKey attached property |
![]() | SubscribeInnerCollection | |
![]() | UnsubscribeInnerCollection |
Protected Methods
| Name | Description | |
|---|---|---|
![]() | AttachViewModels | Called when view models are being attached to the collection. Override this method in derived classes to perform custom attachment logic (e.g., registering to synchronization groups). |
![]() | BlockReentrancy | (Inherited from System.Collections.ObjectModel.ObservableCollection<TView>) |
![]() | CheckReentrancy | (Inherited from System.Collections.ObjectModel.ObservableCollection<TView>) |
![]() | ClearItems | Overridden. Removes all elements from the Collection. |
![]() | CreateView | |
![]() | DetachViewModels | Called when view models are being detached from the collection. Override this method in derived classes to perform custom detachment logic (e.g., unregistering from synchronization groups). |
![]() | ForceResources | Used to force applying resources before an item is inserted into the SourceCollectionBase. Can resolve issues in MVVM API where some properties require styles present before showing |
![]() | InsertElement | |
![]() | InsertItem | (Inherited from System.Collections.ObjectModel.ObservableCollection<TView>) |
![]() | MoveItem | (Inherited from System.Collections.ObjectModel.ObservableCollection<TView>) |
![]() | OnCollectionChanged | (Inherited from System.Collections.ObjectModel.ObservableCollection<TView>) |
![]() | OnPropertyChanged | (Inherited from System.Collections.ObjectModel.ObservableCollection<TView>) |
![]() | RemoveItem | (Inherited from System.Collections.ObjectModel.ObservableCollection<TView>) |
![]() | SetItem | (Inherited from System.Collections.ObjectModel.ObservableCollection<TView>) |
Extension Methods
| Name | Description | |
|---|---|---|
![]() | DebugFinalizer<T> | Notifies that finalizer has been invoked |
![]() | FindIndex | Overloaded. Finds the index of the item in the List according to the desired SearchMode. If isSorted is true, uses fast binary search |
![]() | ForEachDo | Overloaded. Iterates over the list and performs an action on each element |
![]() | IsNullOrEmptyList | Determines whether this is a is null or empty list |
![]() | ToDoubleArray | Overloaded. Converts an System.IComparable array to double array |
![]() | ToEnumerable<T> | Yields a single item, converting it to System.Collections.IEnumerable. |
![]() | ToStringArray2D<T> |
Public Events
| Name | Description | |
|---|---|---|
![]() | CollectionChanged | (Inherited from System.Collections.ObjectModel.ObservableCollection<TView>) |
Protected Events
| Name | Description | |
|---|---|---|
![]() | PropertyChanged | (Inherited from System.Collections.ObjectModel.ObservableCollection<TView>) |
See Also










