using System.Collections.ObjectModel; namespace XHZB.Model { public class ZBPageModel : NotifyModel { public ObservableCollection menuList { get; set; } /// /// 总页码 /// private int _pagenum = 1; /// /// 总页码 /// public int pagenum { get => _pagenum; set { _pagenum = value; OnPropertyChanged("pagenum"); } } /// /// 当前页 从1开始 /// private int _currpage = 1;// 从1开始 /// /// 当前页 从1开始 /// public int currpage { get => _currpage; set { _currpage = value; OnPropertyChanged("currpage"); } } public ZBPageModel() { menuList = new ObservableCollection(); } } }