Class ObservableWrapBase
Clase base para los envoltorios observables de colecciones.
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)
Determina si la secuencia subyacente contiene al elemento especificado.
Declaration
public virtual bool Contains(object item)
Parameters
Type | Name | Description |
---|---|---|
object | item | Elemento a buscar dentro de la secuencia. |
Returns
Type | Description |
---|---|
bool | true si la secuencia contiene al elemento especificado, false en caso contrario. |
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)
Obtiene el índice del elemento especificado.
Declaration
public virtual int IndexOf(object item)
Parameters
Type | Name | Description |
---|---|---|
object | item | Elemento para el cual buscar el índice. |
Returns
Type | Description |
---|---|
int | El índice del elemento especificado, o |
OnGetEnumerator()
Obtiene un enumerador que itera sobre la colección.
Declaration
protected abstract IEnumerator OnGetEnumerator()
Returns
Type | Description |
---|---|
IEnumerator | Un enumerador que puede ser utilizado para iterar sobre la colección. |
RaiseCollectionChanged(NotifyCollectionChangedEventArgs)
Genera el evento CollectionChanged.
Declaration
protected void RaiseCollectionChanged(NotifyCollectionChangedEventArgs eventArgs)
Parameters
Type | Name | Description |
---|---|---|
NotifyCollectionChangedEventArgs | eventArgs | Argumentos del evento. |
RefreshItem(object?)
Obliga a refrescar el estado de un elemento dentro de la colección.
Declaration
public void RefreshItem(object? item)
Parameters
Type | Name | Description |
---|---|---|
object | item | Elemento a refrescar. |
Events
| Edit this page View SourceCollectionChanged
Se produce al ocurrir un cambio en la colección.
Declaration
public event NotifyCollectionChangedEventHandler? CollectionChanged
Event Type
Type | Description |
---|---|
NotifyCollectionChangedEventHandler |