一、创建实体模型-About.cs
二、创建视图-AboutPage.xaml
1、AboutPage.xaml视图页引用模型类所在的路径:xmlns:models="clr-namespace:Test.Models"
;
2、AboutPage.xaml根元素ContentPage
添加BindingContext
属性用来绑定数据:
3、使用 {Binding ..}
来给控件的属性绑定实体中的数据,例如:<Label Text="{Binding Version}" />
作者:꧁执笔小白꧂