运行输出错误:BindingExpression path error: ‘text’ property not found on ‘object’
C#
public class Phone {
public string text;
}
XAML
<TextBlock Text="{Binding text}" Width="200"/>
去官方查了一下发现
所以C#中要改成
public class Phone {
public string text { get; set; }
}