Class ManualObservableCollection<T>
Implementa un envoltorio con notificación de cambio de colección de forma manual para cualquier objeto que implemente IEnumerable<T>.
Inherited Members
Namespace: TheXDS.MCART.Types
Assembly: MCART.Mvvm.dll
Syntax
public class ManualObservableCollection<T> : IEnumerable<T>, IEnumerable, INotifyCollectionChanged
Type Parameters
Name | Description |
---|---|
T | Tipo de objetos de la colección. |
Constructors
| Edit this page View SourceManualObservableCollection(IEnumerable<T>)
Implementa un envoltorio con notificación de cambio de colección de forma manual para cualquier objeto que implemente IEnumerable<T>.
Declaration
public ManualObservableCollection(IEnumerable<T> source)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<T> | source | Colección a exponer por medio de esta instancia. |
Methods
| Edit this page View SourceGetEnumerator()
Returns an enumerator that iterates through the collection.
Declaration
public IEnumerator<T> GetEnumerator()
Returns
Type | Description |
---|---|
IEnumerator<T> | An enumerator that can be used to iterate through the collection. |
NotifyChange()
Notifica a los escuchas registrados que la colección ha cambiado.
Declaration
public void NotifyChange()
NotifyChange(NotifyCollectionChangedEventArgs)
Notifica a los escuchas registrados que la colección ha cambiado.
Declaration
public void NotifyChange(NotifyCollectionChangedEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
NotifyCollectionChangedEventArgs | args | Argumentos de cambio de colección a pasar a los escuchas del evento CollectionChanged. |
Events
| Edit this page View SourceCollectionChanged
Occurs when the collection changes.
Declaration
public event NotifyCollectionChangedEventHandler? CollectionChanged
Event Type
Type | Description |
---|---|
NotifyCollectionChangedEventHandler |