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?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…