示例#1
0
 public Favorite()
 {
     this.InitializeComponent();
     this.RequestedTheme = Services.UserDatabase.LoadSetting();
     UserDB      = new Services.UserDatabase();
     F_ViewModel = new ViewModels.MessageViewModel(UserDB.GetFavorite());
 }
示例#2
0
        public MainPage()
        {
            this.InitializeComponent();
            M_ViewModel    = new ViewModels.MessageViewModel();
            Nav_viewModel  = new ViewModels.NavMenuViewModel();
            Func_viewModel = new ViewModels.NavMenuViewModel("func");
            UserDB         = new Services.UserDatabase();

            ContentView.Navigate(typeof(Home));
        }
示例#3
0
文件: Home.xaml.cs 项目: zhangsht/uwp
        public Home()
        {
            this.InitializeComponent();
            var viewTitleBar = Windows.UI.ViewManagement.ApplicationView.GetForCurrentView().TitleBar;

            viewTitleBar.BackgroundColor       = Windows.UI.Colors.BurlyWood;
            viewTitleBar.ButtonBackgroundColor = Windows.UI.Colors.BurlyWood;

            this.RequestedTheme = Services.UserDatabase.LoadSetting();
            UserDB    = new Services.UserDatabase();
            ViewModel = new ViewModels.FeedReaderViewModel(UserDB.GetSubscription()); // 从网络获取订阅源数据
        }
示例#4
0
 public Login()
 {
     this.InitializeComponent();
     this.RequestedTheme = Services.UserDatabase.LoadSetting();
     UserDB = new Services.UserDatabase();
 }