Is it possible to associate a field (text field) with an object that does not implement a set?
For example, I have an object that implements INotifyPropertyChanged with three fields:
public decimal SubTotal { get { return this.subTotal; } set { this.subTotal = value; this.NotifyPropertyChanged("SubTotal"); this.NotifyPropertyChanged("Tax"); this.NotifyPropertyChanged("Total"); } } public decimal Tax { get { return this.taxCalculator.Calculate(this.SubTotal, this.Region); } } public decimal Total { get { return this.SubTotal + this.Tax; } }
I still canβt verify this, since the user interface has not been created, and before it functions, much remains to be done, but is it possible, as I have it, or is there another way?
source share