Is it possible to bind to a ValueTuple field in WPF with C#7
问题 If I have a viewmodel property public (string Mdf, string MdfPath) MachineDefinition { get; set; } and I try to bind to it in XAML / WPF <Label Content="{Binding Path=MachineDefinition.Item2}" /> or <Label Content="{Binding Path=MachineDefinition.MdfPath}" /> I get the same error I see that ValueTuple fields are really fields not properties . Is this the problem? 回答1: The confusion is that for old style Tuple ( pre C#7 ) all the Items were properties https://msdn.microsoft.com/en-us/library