Posted by: MarkWPF
C, Databinding, WPF, XAML
Here’s a nifty little trick that I recently discovered.
When you need to calculate the result of two properties and display it, you can do it via a Converter class.
You may want to do it, like me, if you couldn’t update the business objects, or didn’t want to.
How do you do it?
Your converter class needs to implement IMultiValueConverter instead of IValueConverter.
Then you specify a multi binding in your xaml, like: