Show / Hide Table of Contents

Class ObservableListWrap

Envuelve una lista para proveerla de notificación de cambios en el contenido de la colección.

Inheritance
object
NotifyPropertyChangeBase
NotifyPropertyChanged
ObservableWrapBase
ObservableListWrap
Implements
INotifyPropertyChangeBase
IRefreshable
INotifyPropertyChanged
IList
ICollection
IEnumerable
INotifyCollectionChanged
Inherited Members
ObservableWrapBase.CollectionChanged
ObservableWrapBase.RaiseCollectionChanged(NotifyCollectionChangedEventArgs)
ObservableWrapBase.GetEnumerator()
ObservableWrapBase.RefreshItem(object)
NotifyPropertyChanged.PropertyChanged
NotifyPropertyChanged.Notify(params string[])
NotifyPropertyChanged.Notify(string)
NotifyPropertyChanged.RaisePropertyChangeEvent(in string, in PropertyChangeNotificationType)
NotifyPropertyChanged.OnDoChange<T>(ref T, T, string)
NotifyPropertyChangeBase.OnInitialize(NotifyPropertyChangeBase.IPropertyBroadcastSetup)
NotifyPropertyChangeBase.Subscribe(PropertyInfo, PropertyChangeObserver)
NotifyPropertyChangeBase.Subscribe(PropertyChangeObserver)
NotifyPropertyChangeBase.Subscribe(Expression<Func<object>>, PropertyChangeObserver)
NotifyPropertyChangeBase.Unsubscribe(PropertyChangeObserver)
NotifyPropertyChangeBase.Unsubscribe(PropertyInfo)
NotifyPropertyChangeBase.Unsubscribe(Expression<Func<object>>)
NotifyPropertyChangeBase.Change<T>(ref T, T, string)
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: TheXDS.MCART.Types
Assembly: MCART.Mvvm.dll
Syntax
public class ObservableListWrap : ObservableWrapBase, INotifyPropertyChangeBase, IRefreshable, INotifyPropertyChanged, IList, ICollection, IEnumerable, INotifyCollectionChanged

Constructors

| Edit this page View Source

ObservableListWrap()

Inicializa una nueva instancia de la clase ObservableListWrap.

Declaration
public ObservableListWrap()
| Edit this page View Source

ObservableListWrap(IList)

Inicializa una nueva instancia de la clase ObservableListWrap.

Declaration
public ObservableListWrap(IList list)
Parameters
Type Name Description
IList list

Lista a establecer como la lista subyacente.

Properties

| Edit this page View Source

Count

Obtiene la cuenta de elementos contenidos dentro de la colección.

Declaration
public int Count { get; }
Property Value
Type Description
int
| Edit this page View Source

IsFixedSize

Obtiene un valor que determina si esta lista es de tamaño fijo.

Declaration
public bool IsFixedSize { get; }
Property Value
Type Description
bool
| Edit this page View Source

IsReadOnly

Obtiene un valor que determina si esta lista es de solo lectura.

Declaration
public bool IsReadOnly { get; }
Property Value
Type Description
bool
| Edit this page View Source

IsSynchronized

Obtiene un valor que indica si el acceso a esta ICollection es sincronizado (seguro para multihilo).

Declaration
public bool IsSynchronized { get; }
Property Value
Type Description
bool
| Edit this page View Source

this[int]

Permite acceder de forma indexada al contenido de este ObservableListWrap.

Declaration
public object? this[int index] { get; set; }
Parameters
Type Name Description
int index

Índice del elemento a obtener o establecer.

Property Value
Type Description
object

El elemento encontrado en el índice especificado dentro de la colección.

| Edit this page View Source

SyncRoot

Obtiene un objeto que puede ser utilizado para sincronizar el acceso al ICollection.

Declaration
public object SyncRoot { get; }
Property Value
Type Description
object
| Edit this page View Source

UnderlyingList

Obtiene acceso directo a la lista subyacente controlada por este ObservableListWrap.

Declaration
public IList? UnderlyingList { get; }
Property Value
Type Description
IList

Methods

| Edit this page View Source

Add(object?)

Agrega un elemento a este ObservableListWrap.

Declaration
public int Add(object? value)
Parameters
Type Name Description
object value

Valor a agregar a este ObservableListWrap.

Returns
Type Description
int

El índice en el cual ha sido agregado el elemento.

| Edit this page View Source

Clear()

Quita todos los elementos de este ObservableListWrap.

Declaration
public void Clear()
| Edit this page View Source

Contains(object?)

Determina si este ObservableListWrap contiene un valor especificado.

Declaration
public override bool Contains(object? value)
Parameters
Type Name Description
object value

Valor a comprobar.

Returns
Type Description
bool

true si este ObservableListWrap contiene el valor especificado, false en caso contrario.

Overrides
ObservableWrapBase.Contains(object)
| Edit this page View Source

CopyTo(Array, int)

Copia el contenido de este ObservableListWrap a un arreglo, iniciando en un índice en particular dentro del arreglo.

Declaration
public void CopyTo(Array array, int index)
Parameters
Type Name Description
Array array

Arreglo de destino de la copia.

int index

Índice dentro del arreglo desde el cual iniciar a copiar.

| Edit this page View Source

IndexOf(object?)

Obtiene el índice de un elemento específico dentro de este ObservableListWrap.

Declaration
public override int IndexOf(object? value)
Parameters
Type Name Description
object value

Valor del cual obtener el índice dentro de este ObservableListWrap.

Returns
Type Description
int

El índice del elemento dentro de este ObservableListWrap.

Overrides
ObservableWrapBase.IndexOf(object)
| Edit this page View Source

Insert(int, object?)

Inserta un elemento dentro de este ObservableListWrap en el índice especificado.

Declaration
public void Insert(int index, object? value)
Parameters
Type Name Description
int index

Índice en el cual realizar la inserción.

object value

Valor a insertar en este ObservableListWrap.

| Edit this page View Source

OnGetEnumerator()

Obtiene un enumerador que itera sobre la colección.

Declaration
protected override IEnumerator OnGetEnumerator()
Returns
Type Description
IEnumerator

Un enumerador que puede ser utilizado para iterar sobre la colección.

Overrides
ObservableWrapBase.OnGetEnumerator()
| Edit this page View Source

Refresh()

Obliga a notificar un cambio en la lista.

Declaration
public override void Refresh()
Overrides
NotifyPropertyChangeBase.Refresh()
| Edit this page View Source

RefreshAt(int)

Obliga a refrescar el estado de un elemento dentro de la lista.

Declaration
public void RefreshAt(int index)
Parameters
Type Name Description
int index

Índice del elemento a refrescar.

| Edit this page View Source

Remove(object?)

Quita un elemento de este ObservableListWrap.

Declaration
public void Remove(object? value)
Parameters
Type Name Description
object value

valor a quitar de este ObservableListWrap.

| Edit this page View Source

RemoveAt(int)

Quita el elemento en el índice especificado de este ObservableListWrap.

Declaration
public void RemoveAt(int index)
Parameters
Type Name Description
int index

Índice del elemento a remover.

| Edit this page View Source

Substitute(IList)

Sustituye la lista subyacente por una nueva.

Declaration
public void Substitute(IList newList)
Parameters
Type Name Description
IList newList

Lista a establecer como la lista subyacente.

Implements

INotifyPropertyChangeBase
IRefreshable
INotifyPropertyChanged
IList
ICollection
IEnumerable
INotifyCollectionChanged

Extension Methods

CollectionHelpers.ToTypes(IEnumerable)
EnumerableExtensions.Contains(IEnumerable, object?)
EnumerableExtensions.ContainsAll(IEnumerable, IEnumerable)
EnumerableExtensions.ContainsAll(IEnumerable, params object?[])
EnumerableExtensions.ContainsAny(IEnumerable, IEnumerable)
EnumerableExtensions.ContainsAny(IEnumerable, params object?[])
EnumerableExtensions.Count(IEnumerable)
EnumerableExtensions.FirstOf<T>(IEnumerable)
EnumerableExtensions.GroupByType(IEnumerable)
EnumerableExtensions.IsAnyOf(IEnumerable, Type)
EnumerableExtensions.IsAnyOf<T>(IEnumerable)
EnumerableExtensions.ItemsEqual(IEnumerable, IEnumerable)
EnumerableExtensions.NotNull(IEnumerable?)
EnumerableExtensions.NullCount(IEnumerable)
EnumerableExtensions.ToGeneric(IEnumerable)
ListExtensions.Locked(IList, Action<IList>)
ListExtensions.RemoveOf<T>(IList)
Objects.ShallowCopyTo(object, object, Type)
ObjectExtensions.FieldsOf<T>(object)
ObjectExtensions.GetAttribute<T>(object)
ObjectExtensions.GetAttributes<T>(object)
ObjectExtensions.HasAttrValue<TAttribute, TValue>(object, out TValue)
ObjectExtensions.HasAttribute<T>(object)
ObjectExtensions.HasAttribute<T>(object, out T?)
ObjectExtensions.HasAttributes<T>(object, out IEnumerable<T>?)
ObjectExtensions.Is(object?, object?)
ObjectExtensions.IsEither(object, IEnumerable)
ObjectExtensions.IsEither(object, params object[])
ObjectExtensions.IsNeither(object, IEnumerable)
ObjectExtensions.IsNeither(object, params object[])
ObjectExtensions.IsNot(object?, object?)
ObjectExtensions.PropertiesOf<T>(object)
ObjectExtensions.WhichAre(object, IEnumerable<object>)
ObjectExtensions.WhichAre(object, params object[])
Common.IfNotNull<T>(T?, Action<T>)
Objects.Itself<T>(T)
Objects.ShallowClone<T>(T)
Objects.ShallowCopyTo<T>(T, T)
ObservingCommandBuilder.Create<T>(T, Action)
ObservingCommandBuilder.Create<T>(T, Action<object?>)
ObservingCommandBuilder.Create<T>(T, Func<object?, Task>)
ObservingCommandBuilder.Create<T>(T, Func<Task>)
CollectionExtensions.PushInto<TItem, TCollection>(TItem, ICollection<TCollection>)
DictionaryExtensions.PushInto<TKey, TValue>(TValue, TKey, IDictionary<TKey, TValue>)
EnumerableExtensions.Locked<T>(T, Action<T>)
EnumerableExtensions.Locked<T, TResult>(T, Func<T, TResult>)
NotifyPropertyChangeBaseExtensions.Subscribe<T>(T, Expression<Func<T, object?>>, PropertyChangeObserver)
NotifyPropertyChangeBaseExtensions.Unsubscribe<T>(T, Expression<Func<T, object?>>)
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX