(X) Hide this
    • Login
    • Join
      • Generate New Image
        By clicking 'Register' you accept the terms of use .
        Login with Facebook

Quick Tip: LINQ & Data Binding notifications

(0 votes)
0 comments   /   posted by Silverlight Show on Jun 24, 2009
Tags:   linq , data-binding , silverlight , wpf
Alex Golesh explains how in Silverlight and WPF you could databind to the LINQ query results.

But what happens when out collection (reminder: ObservableCollection, which implements INotifyCollectionChanged) changed?

Nothing! Because we bounded to the LINQ query (predicate), and the query was executed while databinding occurred :) LINQ query does not fires any notifications because it is not re-evaluated on collection change, but on usage of the predicate.


Comments

No comments

Add Comment

Login to comment:
  *      *       
Login with Facebook

Our News on Twitter