Esempio n. 1
0
        public async void Run(IBackgroundTaskInstance taskInstance)
        {
            XmlDocument tileData = TileUpdateManager.GetTemplateContent(TileTemplateType.TileSquareText04);

            var service = new BlogService();
            var entries = await service.GetPreviewPosts();
            
            tileData.GetElementsByTagName("text")[0].InnerText = entries[0].Title;
            TileNotification notification = new TileNotification(tileData);
            TileUpdateManager.CreateTileUpdaterForApplication().Update(notification);
        }
Esempio n. 2
0
        private async void gridBlog_ItemClick_1(object sender, ItemClickEventArgs e)
        {
            progressBar.IsIndeterminate = true;
            progressBar.Visibility = Windows.UI.Xaml.Visibility.Visible;

            var item = e.ClickedItem as BlogEntrySummary;
            var blogService = new BlogService();
            var entry = await blogService.GetPost(item.Url);

            Frame.Navigate(typeof(BlogPage), entry);
        }