newOnlineQA/ViewModel/MainViewModel.cs

(完整代码) 994B

using GalaSoft.MvvmLight;
using newOnlineQA.Models;
using System.Collections.ObjectModel;

namespace newOnlineQA.ViewModel
{
    public class MainViewModel:ViewModelBase
    {
        public MainViewModel()
        {
            MenuModels = new ObservableCollection<MenuModel>();
            menuModels.Add(new MenuModel() { IconFont = "\xe609", Title = "首页" });
            menuModels.Add(new MenuModel() { IconFont = "\xe6ad", Title = "问答" });
            menuModels.Add(new MenuModel() { IconFont = "\xe7f9", Title = "分类" });
            menuModels.Add(new MenuModel() { IconFont = "\xe641", Title = "个人中心" });
            //menuModels.Add(new MenuModel() { IconFont = "\xe641", Title = "个人中心" });
        }

        private ObservableCollection<MenuModel> menuModels;

        public ObservableCollection<MenuModel> MenuModels
        {
            get { return menuModels; }
            set { menuModels = value; RaisePropertyChanged(); }
        }
    }
}

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。