I am in a small fix, I have a class as below.
Public Class Bill
Public prime As BillPrime
Public items As System.Collections.ObjectModel.ObservableCollection(Of ItemDetails)
Public status As New BillStatus
Public Sub New()
prime = New BillPrime
items = New System.Collections.ObjectModel.ObservableCollection(Of ItemDetails)
status = New BillStatus
End Sub
End Class
How can I update some x value in prime when there is a change in any of the ItemDetails object in items.
Could you please help on how can I come to a solution?
Try using a
BindingList(of T)instead, then you can listen for a change event:This would require your classes to implement
INotifyPropertyChanged: