Hi Togas,
You will need to raise PropertyChanged when any of the 3 property values is updated.
However, you don't need to call a method to calculate it each time assuming your calculated property getter already does so.
Partial Public Class Order
Inherits ibem.entity
Private _TotalMonthlyPayment As Decimal
Private TotalInit As Boolean = False
<AfterSet(EntityPropertyNames.MonthlyPayment)> _
<AfterSet(EntityPropertyNames.OptionPayment)> _
<AfterSet(EntityPropertyNames.UpgradeAmount)> _
Public Sub FireTotalMonthlyPaymentChanged(ByVal args As PropertyInterceptorArgs(Of Order, [String]))
OnPropertyChanged(New PropertyChangedEventArgs("TotalMonthlyPayment"))
End Sub
Public ReadOnly Property TotalMonthlyPayment() As Decimal
Get
Return MonthlyPayment.GetValueOrDefault + OptionPayment.GetValueOrDefault + UpgradeAmount.GetValueOrDefault
End Get
End Property
Regards,
Silvio.