Observablecollection not updating

Posted by / 29-Jul-2016 14:21

mail me if required, MSPrakash Kumar Chakka at Bindable LINQ is a set of extensions to LINQ that add data binding and change propagation capabilities to standard LINQ queries. Suppose you wrote the following LINQ to Objects query: class is designed to propagate change; that is, it raises Collection Changed events when items are added to the list.

However, if you wrote the code above, you would find that neither Omar nor Paul appear on the screen. It turns out that the objects returned by a LINQ to Objects query do not provide Collection Changed events.

The out of the box LINQ experience makes it difficult for rich client developers to display changes to data while simultaneously using LINQ. With a minor code change, we can enable change propagation over LINQ to Objects queries: As well as propogating change, Bindable LINQ can analyse your queries at runtime and detect any dependencies your query has.

If these dependencies provide events to subscribe to, Bindable LINQ will automatically monitor them for change.

Bindable LINQ is designed for Windows Presentation Foundation, Silverlight, and Windows Forms.

See the following pages for more information: Bindable LINQ is licensed under the New BSD license, making it free to use in both open source and commercial applications.

The end result is that as the user types, the items in the query are re-evaluated and the changes appear on screen. The aim of Bindable LINQ is to be fully compatible with LINQ to Objects, at least where it makes sense.

For more information, see the LINQ Compatibility page.

We are currently planning what will be involved in version 1.0.

This thread looks to be a little on the old side and therefore may no longer be relevant. IQueryable is not observable by default, therefore adding/removing and items will not automatically update UI control, e.g., Items Control (WPF) I tried to wrap-around IQueryable to Observable Collection, but it didn't work.

Take this query for example: Bindable LINQ will detect that the query relies on the Text property of the Text Box object, text Box1.

Since the Text Box is a WPF control, Bindable LINQ knows to subscribe to the Text Changed event on the control.

observablecollection not updating-48observablecollection not updating-27observablecollection not updating-28

Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product. Is there a way to make Items Control to observe the changes?