I dont see this in the WPF project. Where might I find INotifyCollectionChanged 
support. Also can it be integrated with ActiveRecord?




________________________________
From: José F. Romaniello <[email protected]>
To: [email protected]
Sent: Fri, October 16, 2009 7:22:39 AM
Subject: [nhusers] Re: WPF and INotifyPropertyChanged

You are wrong.  
You have to use "INotifyCollectionChanged" there is one class in the .net 
framework that implements INotifyCollectionChanged, ObservableCollection.

So, in transient instances you have to put a observablecollection,... For 
persisted entities, you should write a nhibernate collection that implements 
INotifyCollectionChanged

*BUT*, fortunately in unofficial nhibernate addins, we have already done this. 
The project is named "uNhAddIns.WPF".

And the only thing you have to do is to configure ONCE the collection type 
factory.... And all collections will implement INotifyCollectionChanged.

  e.Configuration.Properties[Environment.CollectionTypeFactoryClass]
 
=typeof (WpfCollectionTypeFactory).AssemblyQualifiedName; 


BTW; in unhaddins we have some code for the inotifypropertychanged too:
http://jfromaniello.blogspot.com/2009/10/introducing-unhaddinscomponentbehaviors.html





2009/10/16 LasseL <[email protected]>


>Hi
>
>I've read Ayende's artikle with great intrest (
>http://ayende.com/Blog/archive/2009/08/07/nhibernate-amp-inotifypropertychanged.aspx).
>
>My business classes contains a lot of propertys of type IList<T>.
>I've tried to extend Ayende's ideas to also take care of the IList<T>
>situation,,,  fire the INotifyPropertyChanged event when the list is
>modified. So far no sucess,,, can anyone help me?
>
>
>//regards
>//lasse
>
>
>



      
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to