Releases: JordanMarr/ReactiveElmish.Avalonia
ReactiveElmish.Avalonia v1.1.1
This release adds new methods to the ReactiveElmishViewModel
that provide the ability to bind regular list
and Map<>
properties from your model to your view model without having to directly use DynamicData
SourceList
and SourceCache
collections in your model.
These methods will diff changes in your model and then update the view on your behalf.
BindList
Binds a collection type on the model to a DynamicData.SourceList
behind the scenes. Changes to the collection in the model are diffed and updated for you in the SourceList
. Also has an optional map
overload that allows you to transform items when they are added to the SourceList
.
BindKeyedList
Binds a Map<'Key, 'Value>
"keyed list" to an ObservableCollection
behind the scenes. Changes to the Map
in the model are diffed based on the provided getKey
function that returns the 'Key
for each item. Use this when you want to store a list of items that can be identified by one or more identifying keys. Also has a map
overload that allows you to transform items when they are added to the ObservableCollection
.
BindSourceCache
Added a new optional parameter, update
, which allows you to pass a function to manually update the mapped item when the item changes in the model.
See also: Tips for Binding Collections
ReactiveElmish.Avalonia v1.0.0
Previously "Elmish.Avalonia", but now reimagined and rewritten from the ground up.
- Adds Elmish Stores
IStore<'Model, 'Msg>
- Adds
ReactiveElmishViewModel
with custom bindings
Elmish.Avalonia v1.1.0
- Updates to Avalonia v11.0.5
- Drops support for .NETCoreApp 3.1
Elmish.Avalonia v1.0.1
- Upgrades from Avalonia pre-release to v11.0.2
- Adds the
ElmishViewModel
module for working with theViewLocator
pattern.
Fixed for multi-platform
This release removes the last few Windows-only vestiges (left over from Elmish.WPF) that were preventing it from working on non-Windows platforms.
Thanks to @sleepyfran for this!