Exemplo n.º 1
0
        public async void Run(IBackgroundTaskInstance taskInstance)
        {
            var deferral = taskInstance.GetDeferral();
            await TileUpdate.Update();

            deferral.Complete();
        }
Exemplo n.º 2
0
        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();
            };
        }