Tuesday, 17 September 2013

.Net Immutable Collections with WPF DataGrid

.Net Immutable Collections with WPF DataGrid

Has anybody found a nice pattern for binding ImmutableCollections ( from
the MS BCL ) to a WPF DataGrid? To represent mutablility of an immutable
structure I would wrap it with ISubject to track changes and provide new
versions to the datagrid.
ISubject<ImmutableList<T>> <--(binding)--> DataGrid
Has anybody tried something like this before? Any suggestions on how to
model this. The DataGrid obviously needs a mutable collection such as
ObservableCollection directly under it so perhaps the problem can be
reduced to
ISubject<ImmutableList<T>> <-----> ObservableCollection<T>
Any suggestions?
ObservableCollection

No comments:

Post a Comment