why binding to ValueTuple
property members (like Item1, Item2 ect) dont work?
<TextBlock x:Name="txtTest" Text="{Binding Item1}" />
the code:
txtTest.DataContext = ("Item A", "Another Item..");
output window:
BindingExpression path error: 'Item1' property not found on 'object' ''ValueTuple`2'
However in Tuple
It always worked.
this.DataContext = new Tuple<string, string>("item 1", "item 2");
this is working fine. – Highflier