|
|
|
@ -54,7 +54,7 @@ namespace Avalonia.Collections |
|
|
|
/// <summary>
|
|
|
|
/// DataGrid-readable view over an IEnumerable.
|
|
|
|
/// </summary>
|
|
|
|
public sealed class DataGridCollectionView : IDataGridCollectionView, IDataGridEditableCollectionView, INotifyPropertyChanged |
|
|
|
public sealed class DataGridCollectionView : IDataGridCollectionView, IDataGridEditableCollectionView, IList, INotifyPropertyChanged |
|
|
|
{ |
|
|
|
/// <summary>
|
|
|
|
/// Since there's nothing in the un-cancelable event args that is mutable,
|
|
|
|
@ -1153,6 +1153,17 @@ namespace Avalonia.Collections |
|
|
|
get { return GetItemAt(index); } |
|
|
|
} |
|
|
|
|
|
|
|
bool IList.IsFixedSize => false; |
|
|
|
bool IList.IsReadOnly => true; |
|
|
|
bool ICollection.IsSynchronized => false; |
|
|
|
object ICollection.SyncRoot => this; |
|
|
|
|
|
|
|
object IList.this[int index] |
|
|
|
{ |
|
|
|
get => this[index]; |
|
|
|
set => throw new NotSupportedException(); |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Add a new item to the underlying collection. Returns the new item.
|
|
|
|
/// After calling AddNew and changing the new item as desired, either
|
|
|
|
@ -3981,6 +3992,11 @@ namespace Avalonia.Collections |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
int IList.Add(object value) => throw new NotSupportedException(); |
|
|
|
void IList.Clear() => throw new NotSupportedException(); |
|
|
|
void IList.Insert(int index, object value) => throw new NotSupportedException(); |
|
|
|
void ICollection.CopyTo(Array array, int index) => InternalList.CopyTo(array, index); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Creates a comparer class that takes in a CultureInfo as a parameter,
|
|
|
|
/// which it will use when comparing strings.
|
|
|
|
|