Silverlight 4: Binding to a calculation of control properties

Posted by Rich.Carpenter on Stack Overflow See other posts from Stack Overflow or by Rich.Carpenter
Published on 2010-05-25T13:33:00Z Indexed on 2010/05/25 19:51 UTC
Read the original article Hit count: 226

What I would like to do is pretty simple. Given textboxes for ItemPrice, Tax and Total, I need the text value for Total to be bound to ItemPrice + Tax and the Tax value to display ItemPrice * taxRate.

Could someone offer a brief explanation as to how this would be accomplished or point me to an appropriate example? I see property binding examples all over the place, but none that show binding to a calculation of the properties of two controls.

© Stack Overflow or respective owner

Related posts about Silverlight

Related posts about binding