2

I have user control in which I have placed a Listview and Richtext box control.

ListView is binded to my custom collection.

Below the listview I placed a richtext box in which I want to display my custom text. The custom text is created from the custom collection.

I want to recreate the custom text whenever any thing change in my custom collection.

How can I acheive this. I have implemented INotifyProperty changed event in my Viewmodel.

In the viewmodel, my custom collection resides.

Ashish Ashu
  • 14,169
  • 37
  • 86
  • 117
  • possible duplicate of [ObservableCollection that also monitors changes on the elements in collection](http://stackoverflow.com/questions/269073/observablecollection-that-also-monitors-changes-on-the-elements-in-collection) – Kyle Rosendo May 11 '10 at 06:20
  • Databind the textbox to a property of your viewmodel. When you recreate your custom text, you post that property change. Are you asking how you do data binding to a vm implementing INotifyPropertyChanged? – Wallstreet Programmer May 11 '10 at 18:59

1 Answers1

5

Use the CollectionChanged property from ObservableCollection.

Igor Popov
  • 9,795
  • 7
  • 55
  • 68
Kishore Kumar
  • 21,449
  • 13
  • 81
  • 113