public MainPage() { InitializeComponent(); feedsDashboardVM = new FeedsDashboardViewModel(); FeedsDashboardViewOnPage.DataContext = feedsDashboardVM.FeedDashboardCollection; statusBarVM = new StatusBarViewModel(); StatusBarViewOnPage.DataContext = statusBarVM; refreshDashboardTimer.Interval = TimeSpan.FromSeconds(GetRefreshRate()); refreshDashboardTimer.Tick += OnRefreshDashboardTimerTick; }
// Constructor public SetupPage() { InitializeComponent(); feedsSubscribedPreviewVM = new FeedsSubscribedPreviewViewModel(); FeedsSubscribedViewOnPage.DataContext = feedsSubscribedPreviewVM.FeedSubscribedPreviewCollection; statusBarVM = new StatusBarViewModel(); StatusBarViewOnPage.DataContext = statusBarVM; // Sample code to localize the ApplicationBar //BuildLocalizedApplicationBar(); }