Class ObservableWrapBase
Base class for observable collection wrappers.
Inheritance
Implements
Inherited Members
Namespace: TheXDS.MCART.Types.Base
Assembly: MCART.Mvvm.dll
Syntax
public abstract class ObservableWrapBase : NotifyPropertyChanged, INotifyPropertyChangeBase, IRefreshable, INotifyPropertyChanged, INotifyCollectionChanged, IEnumerable
Methods
| Edit this page View SourceContains(object)
Determines whether the underlying sequence contains the specified item.
Declaration
public virtual bool Contains(object item)
Parameters
| Type | Name | Description |
|---|---|---|
| object | item | Item to locate in the sequence. |
Returns
| Type | Description |
|---|---|
| bool | true if the sequence contains the specified item; otherwise, false. |
GetEnumerator()
Returns an enumerator that iterates through a collection.
Declaration
public IEnumerator GetEnumerator()
Returns
| Type | Description |
|---|---|
| IEnumerator | An IEnumerator object that can be used to iterate through the collection. |
IndexOf(object)
Gets the index of the specified item.
Declaration
public virtual int IndexOf(object item)
Parameters
| Type | Name | Description |
|---|---|---|
| object | item | Item for which to find the index. |
Returns
| Type | Description |
|---|---|
| int | The index of the specified item, or |
OnGetEnumerator()
Gets an enumerator that iterates through the collection.
Declaration
protected abstract IEnumerator OnGetEnumerator()
Returns
| Type | Description |
|---|---|
| IEnumerator | An enumerator that can be used to iterate over the collection. |
RaiseCollectionChanged(NotifyCollectionChangedEventArgs)
Raises the CollectionChanged event.
Declaration
protected void RaiseCollectionChanged(NotifyCollectionChangedEventArgs eventArgs)
Parameters
| Type | Name | Description |
|---|---|---|
| NotifyCollectionChangedEventArgs | eventArgs | Event arguments. |
RefreshItem(object?)
Forces refresh of a single item within the collection.
Declaration
public void RefreshItem(object? item)
Parameters
| Type | Name | Description |
|---|---|---|
| object | item | Item to refresh. |
Events
| Edit this page View SourceCollectionChanged
Occurs when the collection changes.
Declaration
public event NotifyCollectionChangedEventHandler? CollectionChanged
Event Type
| Type | Description |
|---|---|
| NotifyCollectionChangedEventHandler |