public async void Run(IBackgroundTaskInstance taskInstance) { var deferral = taskInstance.GetDeferral(); await TileUpdate.Update(); deferral.Complete(); }
public MainPage() { this.InitializeComponent(); Current = this; App.AppFrame = MainFrame; App.RootGrid = RootGrid; //ApplicationView.GetForCurrentView().TryEnterFullScreenMode(); CustomTitleBar(); SystemNavigationManager.GetForCurrentView().BackRequested += App_BackRequested; Loaded += async(s, e) => { if (DeviceHelper.IsMobile()) { await StatusBar.GetForCurrentView().HideAsync(); } rdoCourse.IsChecked = true; await TileUpdate.Update(); }; }