inotifypropertychanged

How to create a custom observable collection using ConcurrentDictionary, INotifyCollectionChanged, INotifyPropertyChanged

Hi All I am trying to create an ObservableConcurrentDictionary. This object will be used in a multithreaded application, and it's data is used to populate a control via the controls ItemsSource property. This is the implementation i have come up with: public sealed class ObservableConcurrentDictionary<TKey, TValue> : ConcurrentDiction...

PropertyChanged not firing

Hi everybody! I have a strange situation: in a .NET CF project there is a class (call it A) which has the following structure: public partial class A: Form, INotifyPropertyChanged { //for simplicity stripping off everything unrelated to this problem private int _SelectedRowsCount = 0; public int SelectedRowsCount ...

RIA Services, Silverlight 4, Hooking child entity events in the parent entity.

I'm using Silverlight 4 RIA Services. Customer class has CustomerAddresses child collection. In the server-side metadata file I added the following attributes: [Include] [Composition] public EntityCollection<CustomerAddress> CustomerAddresses { get; set; } I'm able to query my customer data without any problem. When customer loaded in...

Silverlight UI not unsubscribing from PropertyChanged events

I have a data bound UI. When I change the underlying data the UI updates fine but the controls appear to remain subscribed to my PropertyChanged events. I have the following: An ItemsControl bound to ListA Each item ListA contains a sub list ListB that is displayed using another ItemsControl Each item ListB is displayed using a TextB...