yossiepon

Results 2 comments of yossiepon

SynchronizedView<T, TView> が通知する NotifyCollectionChangedEventArgs<T> が T 型のため WPF に渡される要素も T 型になっているのが原因のように思われます。 NotifyCollectionChangedEventHandler<TView> として TView 型コレクションの変更イベントにしてやるとうまくバインドされました。[やっつけ実装](https://github.com/yossiepon/ObservableCollectionsMod/commit/042ebe5f21d7cf57a9b9cf8fba018303bf3823e1) ビューが (T value, TView view) のタプルになっている理由はフィルタメソッドで両方見たいからではと推測しましたが、元コメントにあるように WPF で直接バインドできないのは不便に感じました。 ※試してませんが NotifyCollectionChangedEventHandler<(T, Tvalue)> としたら Item2.~ で取れたりするのでしょうか。 --...

こんな感じで書けるような、別の案を考えてみました。[実装](https://github.com/yossiepon/ObservableCollectionsMod/commits/feature/wpf_synchronizedview) google translate) I came up with [another idea](https://github.com/yossiepon/ObservableCollectionsMod/commits/feature/wpf_synchronizedview) that could be written as: ``` ItemsView = list .ToSynchronizedCoupleView(x => $"({x}, {x}$)") // IReadOnlyCollection -NotifyCollectionChangedEventHandler .ToSynchronizedSingleView() // IReadOnlyCollection -NotifyCollectionChangedEventHandler .WithINotifyCollectionChanged();...