The ultimate task is: bind some WPF controls to LINQ queries.
Having searched for "Bindable LINQ" I've found multiple references to Obtics, Bindable Linq and Continuous LINQ. They do what I want to, but one thing confuses me: their age. Seems like their development stopped at nearly the same time somewhere in 2009-2010, which is suspicious.
Is it still reasonable to use them? Haven't they eventually been superseded by some standard library means?
After some more research:
Let me introduce my library ObservableComputations. It is production ready library sutable for bind WPF controls to LINQ like queries.
What you are looking for are Reactive Extensions (Rx.Net). For working with WPF MVVM there´s a library called ReactiveUI.
Then you can use ReactiveList instead of ObservableCollection
and just define your linq querys on that list.
code form their documentation:
DocumentList = new ReactiveList<Document>() {
ChangeTrackingEnabled = true,
};
DocumentList.ItemChanged
.Where(x => x.PropertyName == "IsDirty" && x.Sender.IsDirty)
.Select(x => x.Sender)
.Subscribe(x => {
Console.WriteLine("Make sure to save {0}!", x.DocumentName);
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With