0

ReactiveUI 3.2.0.0 には、ObserveCollectionChanged() メソッドを実装する CollectionExtensions クラスがありました。ReactiveUI 4.0.2 のメソッドはどこにありますか?

    private readonly ReactiveCollection<string> _sourceItems = new ReactiveCollection<string>();
    private readonly ReactiveCollection<SelectableDataItem<string>> _selectableItemsView = null;
    private readonly ReactiveCollection<SelectableDataItem<string>> _selectedItemsView = null;
    private readonly ReactiveCollection<string> _selectedDataView = null;

    ....


        this._sourceItems.ChangeTrackingEnabled = true;

        this._selectableItemsView =
            this.SourceItems.CreateDerivedCollection<string, SelectableDataItem<string>>(i => new SelectableDataItem<string>(i) { IsSelected = true, });
        this._selectableItemsView.ChangeTrackingEnabled = true;
        this._selectedItemsView =
            this._selectableItemsView.CreateDerivedCollection<SelectableDataItem<string>, SelectableDataItem<string>>(
            i => i,
            f => f.IsSelected,
            (i1, i2) => 0
            );
        this._selectedItemsView.ChangeTrackingEnabled = true;
        this._selectedDataView =
            this._selectableItemsView.CreateDerivedCollection<SelectableDataItem<string>, string>(i => i.Data, f => f.IsSelected, (i1, i2) => 0);
        this._selectedDataView.ChangeTrackingEnabled = true;
4

1 に答える 1

0

ReactiveUI 4.1 にアップグレードして使用しますsomeCollection.CreateDerivedCollection- すべての作業はすでに完了しています :)

于 2012-12-04T20:54:09.903 に答える