How can I make an Observable Hashset in C#?

后端 未结 3 1533
轮回少年
轮回少年 2020-12-14 19:50

Currently I am using an ObservableCollection within a WPF application, the application is an implementation of Conway\'s Game of life and works well for about 500 cells but

3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-14 20:51

    You have to implement INotifyCollectionChanged too, and then it should all work OK. There's another relevant SO answer which uses freezables to ensure that changes in underlying entities are also handled.

提交回复
热议问题