I have 3 textbox's in WPF bound to three properties of my business object. The texboxes allow the user to enter three different lengths.
I then have a number of textblocks bound to other properties which display simple calculations from the 3 inputs. The values of these properties are calculated in the get method of each property as follows:
public double Length1 { get; set }
public double Length2 { get; set }
public double Length3 { get; set }
public double Result1
{
get { return Length1 - Length2 - Length3; }
}
public double Result2
{
get { return Length1 + Length2 + Length3; }
}
How can i update the bindings of Result1 and Result2 after changes made to Lengths1,2 or 3?
Thanks