7 changed files with 86 additions and 15 deletions
@ -0,0 +1,30 @@ |
|||
namespace Perspex |
|||
{ |
|||
using System; |
|||
using System.Collections; |
|||
using System.Collections.Generic; |
|||
using System.Collections.ObjectModel; |
|||
using System.Collections.Specialized; |
|||
using System.Linq; |
|||
using System.Reactive.Linq; |
|||
using System.Reactive.Subjects; |
|||
using System.Text; |
|||
using System.Threading.Tasks; |
|||
|
|||
public class PerspexList<T> : ObservableCollection<T> |
|||
{ |
|||
public PerspexList() |
|||
{ |
|||
this.Changed = Observable.FromEvent<NotifyCollectionChangedEventHandler, NotifyCollectionChangedEventArgs>( |
|||
handler => (sender, e) => handler(e), |
|||
handler => this.CollectionChanged += handler, |
|||
handler => this.CollectionChanged -= handler); |
|||
} |
|||
|
|||
public IObservable<NotifyCollectionChangedEventArgs> Changed |
|||
{ |
|||
get; |
|||
private set; |
|||
} |
|||
} |
|||
} |
|||
Loading…
Reference in new issue