Is it possible to do something like this in WPF?
Presuming I have a class like this:
class Pair
{
public string A{get;set;}
public string B{get;set;}
}
And properties PropertyA correctly bound, PropertyB correctly bound…
<SomeControl Tag="{Pair A="{Binding Path=PropertyA}", B="{Binding Path=PropertyB}" />
You can use a
MultiBindingwith a converter:With this converter: