Пример #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
        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();
 }