private async void CreateTile(string navSource, TileInfo tileInfo) { await CheckRemoteImages(tileInfo); var tileData = GetStandardTileData(tileInfo); ShellTile.Create(new Uri(navSource, UriKind.Relative), tileData); }
/// <summary> /// Pins a tile to start page. /// </summary> /// <param name="viewModelType">The source view-model.</param> /// <param name="tileInfo">The tile information.</param> public void PinToStart(Type viewModelType, TileInfo tileInfo) { var uri = _navigationService.GetUri(viewModelType); uri += string.Format("?currentID={0}", HttpUtility.UrlEncode(tileInfo.CurrentId) ?? string.Empty); if (TileExists(uri)) UpdateTile(uri, tileInfo); else CreateTile(uri, tileInfo); }
private async void UpdateTile(string uri, TileInfo tileInfo) { await CheckRemoteImages(tileInfo); var tileData = GetStandardTileData(tileInfo); var activeTile = ShellTile.ActiveTiles.FirstOrDefault(t => t.NavigationUri.ToString().Contains(uri)); if (activeTile != null) activeTile.Update(tileData); }
/// <summary> /// Initializes a <see cref="Services.TileInfo" /> object for the AboutThisPlace1StaticControl control. /// </summary> /// <returns>A <see cref="Services.TileInfo" /> object.</returns> public Services.TileInfo CreateTileInfoAboutThisPlace1StaticControl() { var tileInfo = new Services.TileInfo { CurrentId = CurrentspecialplacesCollectionSchema.Id.ToString(), Title = CurrentspecialplacesCollectionSchema.Title, BackTitle = CurrentspecialplacesCollectionSchema.Title, BackContent = CurrentspecialplacesCollectionSchema.Description, Count = 0, BackgroundImagePath = string.Empty, BackBackgroundImagePath = string.Empty, LogoPath = "Logo-aafb5c9d-c352-45d2-8a05-ca75f71cb409.png" }; return tileInfo; }
private static StandardTileData GetStandardTileData(TileInfo tileInfo) { var tileData = new StandardTileData { Title = HtmlUtil.CleanHtml(tileInfo.Title) ?? string.Empty, Count = tileInfo.Count, BackTitle = HtmlUtil.CleanHtml(tileInfo.BackTitle) ?? string.Empty, BackContent = HtmlUtil.CleanHtml(tileInfo.BackContent) ?? string.Empty }; if (!string.IsNullOrEmpty(tileInfo.BackgroundImagePath)) tileData.BackgroundImage = new Uri(tileInfo.BackgroundImagePath, UriKind.RelativeOrAbsolute); if (!string.IsNullOrEmpty(tileInfo.BackgroundImagePath)) tileData.BackBackgroundImage = new Uri(tileInfo.BackBackgroundImagePath, UriKind.RelativeOrAbsolute); return tileData; }
/// <summary> /// Initializes a <see cref="Services.TileInfo" /> object for the Geography_InfoHtmlControl control. /// </summary> /// <returns>A <see cref="Services.TileInfo" /> object.</returns> public Services.TileInfo CreateTileInfoGeography_InfoHtmlControl() { var tileInfo = new Services.TileInfo { CurrentId = @"Geography", Title = @"Geography", BackTitle = @"Geography", BackContent = CurrentGeography_InfoHtmlControl, Count = 0, BackgroundImagePath = string.Empty, BackBackgroundImagePath = string.Empty, LogoPath = "Logo-4ff76cb8-5c06-4bf6-bcdc-64756a06d71a.png" }; return(tileInfo); }
/// <summary> /// Initializes a <see cref="Services.TileInfo" /> object for the YouTube_DetailVideosStaticControl control. /// </summary> /// <returns>A <see cref="Services.TileInfo" /> object.</returns> public Services.TileInfo CreateTileInfoYouTube_DetailVideosStaticControl() { var tileInfo = new Services.TileInfo { CurrentId = CurrentYouTubeVideo.VideoId, Title = CurrentYouTubeVideo.Title, BackTitle = CurrentYouTubeVideo.Title, BackContent = string.Empty, Count = 0, BackgroundImagePath = CurrentYouTubeVideo.VideoImageUrl, BackBackgroundImagePath = CurrentYouTubeVideo.VideoImageUrl, LogoPath = "Logo-e5fdb3ff-dfbe-482b-8e55-b7902363885e.png" }; return(tileInfo); }
/// <summary> /// Initializes a <see cref="Services.TileInfo" /> object for the monuments_DetailStaticControl control. /// </summary> /// <returns>A <see cref="Services.TileInfo" /> object.</returns> public Services.TileInfo CreateTileInfomonuments_DetailStaticControl() { var tileInfo = new Services.TileInfo { CurrentId = CurrentmonumentsCollectionSchema.Id.ToString(), Title = CurrentmonumentsCollectionSchema.Subtitle, BackTitle = CurrentmonumentsCollectionSchema.Subtitle, BackContent = string.Empty, Count = 0, BackgroundImagePath = CurrentmonumentsCollectionSchema.Image, BackBackgroundImagePath = CurrentmonumentsCollectionSchema.Image, LogoPath = "Logo-aafb5c9d-c352-45d2-8a05-ca75f71cb409.png" }; return(tileInfo); }
/// <summary> /// Initializes a <see cref="Services.TileInfo" /> object for the Videos_DetailVideosStaticControl control. /// </summary> /// <returns>A <see cref="Services.TileInfo" /> object.</returns> public Services.TileInfo CreateTileInfoVideos_DetailVideosStaticControl() { var tileInfo = new Services.TileInfo { CurrentId = CurrentYouTubeVideo.VideoId, Title = CurrentYouTubeVideo.Title, BackTitle = CurrentYouTubeVideo.Title, BackContent = string.Empty, Count = 0, BackgroundImagePath = CurrentYouTubeVideo.VideoImageUrl, BackBackgroundImagePath = CurrentYouTubeVideo.VideoImageUrl, LogoPath = "DoWApp-Logo.png" }; return(tileInfo); }
/// <summary> /// Initializes a <see cref="Services.TileInfo" /> object for the SpecialPlacesAboutThisPlace1StaticControl control. /// </summary> /// <returns>A <see cref="Services.TileInfo" /> object.</returns> public Services.TileInfo CreateTileInfoSpecialPlacesAboutThisPlace1StaticControl() { var tileInfo = new Services.TileInfo { CurrentId = CurrentspecialplacesCollectionSchema.Id.ToString(), Title = CurrentspecialplacesCollectionSchema.Description, BackTitle = CurrentspecialplacesCollectionSchema.Description, BackContent = CurrentspecialplacesCollectionSchema.Description, Count = 0, BackgroundImagePath = string.Empty, BackBackgroundImagePath = string.Empty, LogoPath = "Logo-4ff76cb8-5c06-4bf6-bcdc-64756a06d71a.png" }; return(tileInfo); }
/// <summary> /// Initializes a <see cref="Services.TileInfo" /> object for the GeekyGadgets_DetailStaticControl control. /// </summary> /// <returns>A <see cref="Services.TileInfo" /> object.</returns> public Services.TileInfo CreateTileInfoGeekyGadgets_DetailStaticControl() { var tileInfo = new Services.TileInfo { CurrentId = CurrentRssSearchResult.Title, Title = CurrentRssSearchResult.Title, BackTitle = CurrentRssSearchResult.Title, BackContent = CurrentRssSearchResult.Content, Count = 0, BackgroundImagePath = CurrentRssSearchResult.ImageUrl, BackBackgroundImagePath = CurrentRssSearchResult.ImageUrl, LogoPath = "DoWApp-Logo.png" }; return(tileInfo); }
/// <summary> /// Initializes a <see cref="Services.TileInfo" /> object for the Web_DetailStaticControl control. /// </summary> /// <returns>A <see cref="Services.TileInfo" /> object.</returns> public Services.TileInfo CreateTileInfoWeb_DetailStaticControl() { var tileInfo = new Services.TileInfo { CurrentId = CurrentRssSearchResult.Title, Title = CurrentRssSearchResult.Title, BackTitle = CurrentRssSearchResult.Title, BackContent = CurrentRssSearchResult.Content, Count = 0, BackgroundImagePath = CurrentRssSearchResult.ImageUrl, BackBackgroundImagePath = CurrentRssSearchResult.ImageUrl, LogoPath = "Logo-e5fdb3ff-dfbe-482b-8e55-b7902363885e.png" }; return(tileInfo); }
/// <summary> /// Initializes a <see cref="Services.TileInfo" /> object for the Statistics_DetailStaticControl control. /// </summary> /// <returns>A <see cref="Services.TileInfo" /> object.</returns> public Services.TileInfo CreateTileInfoStatistics_DetailStaticControl() { var tileInfo = new Services.TileInfo { CurrentId = CurrentStatisticsSchema.Id.ToString(), Title = CurrentStatisticsSchema.Description, BackTitle = CurrentStatisticsSchema.Description, BackContent = CurrentStatisticsSchema.Description, Count = 0, BackgroundImagePath = string.Empty, BackBackgroundImagePath = string.Empty, LogoPath = "Logo-4ff76cb8-5c06-4bf6-bcdc-64756a06d71a.png" }; return(tileInfo); }
/// <summary> /// Initializes a <see cref="Services.TileInfo" /> object for the info_InfoHtmlControl control. /// </summary> /// <returns>A <see cref="Services.TileInfo" /> object.</returns> public Services.TileInfo CreateTileInfoinfo_InfoHtmlControl() { var tileInfo = new Services.TileInfo { CurrentId = @"info", Title = @"info", BackTitle = @"info", BackContent = Currentinfo_InfoHtmlControl, Count = 0, BackgroundImagePath = string.Empty, BackBackgroundImagePath = string.Empty, LogoPath = "Logo-aafb5c9d-c352-45d2-8a05-ca75f71cb409.png" }; return(tileInfo); }
/// <summary> /// Initializes a <see cref="TileInfo" /> object for the descStaticControl control. /// </summary> /// <returns>A <see cref="TileInfo" /> object.</returns> public TileInfo CreateTileInfodescStaticControl() { var tileInfo = new TileInfo { CurrentId = CurrentdiarySchema.Id.ToString(), Title = CurrentdiarySchema.Description, BackTitle = CurrentdiarySchema.Description, BackContent = CurrentdiarySchema.Description, Count = 0, BackgroundImagePath = string.Empty, BackBackgroundImagePath = string.Empty, LogoPath = "Logo-fee674dd-17e3-4874-ad8f-9b2146854d85.png" }; return tileInfo; }
/// <summary> /// Initializes a <see cref="TileInfo" /> object for the videos_DetailVideosStaticControl control. /// </summary> /// <returns>A <see cref="TileInfo" /> object.</returns> public TileInfo CreateTileInfovideos_DetailVideosStaticControl() { var tileInfo = new TileInfo { CurrentId = CurrentYouTubeVideo.VideoId, Title = CurrentYouTubeVideo.Title, BackTitle = CurrentYouTubeVideo.Title, BackContent = string.Empty, Count = 0, BackgroundImagePath = CurrentYouTubeVideo.VideoImageUrl, BackBackgroundImagePath = CurrentYouTubeVideo.VideoImageUrl, LogoPath = "Logo-3ed85fce-a84f-465c-836d-47785f43766a.png" }; return tileInfo; }
/// <summary> /// Initializes a <see cref="TileInfo" /> object for the monuments_DetailStaticControl control. /// </summary> /// <returns>A <see cref="TileInfo" /> object.</returns> public TileInfo CreateTileInfomonuments_DetailStaticControl() { var tileInfo = new TileInfo { CurrentId = CurrentmonumentsCollectionSchema.Id.ToString(), Title = CurrentmonumentsCollectionSchema.Subtitle, BackTitle = CurrentmonumentsCollectionSchema.Subtitle, BackContent = string.Empty, Count = 0, BackgroundImagePath = CurrentmonumentsCollectionSchema.Image, BackBackgroundImagePath = CurrentmonumentsCollectionSchema.Image, LogoPath = "Logo-eb4b8914-786c-479a-9e60-254e2bb0549e.png" }; return tileInfo; }
/// <summary> /// Initializes a <see cref="Services.TileInfo" /> object for the characters_DetailStaticControl control. /// </summary> /// <returns>A <see cref="Services.TileInfo" /> object.</returns> public Services.TileInfo CreateTileInfocharacters_DetailStaticControl() { var tileInfo = new Services.TileInfo { CurrentId = CurrentcharactersSchema.Id.ToString(), Title = CurrentcharactersSchema.Subtitle, BackTitle = CurrentcharactersSchema.Subtitle, BackContent = CurrentcharactersSchema.Description, Count = 0, BackgroundImagePath = CurrentcharactersSchema.Image, BackBackgroundImagePath = CurrentcharactersSchema.Image, LogoPath = "Logo-86d55146-95c6-4b0c-8665-4d5dbaa5a5db.png" }; return tileInfo; }
/// <summary> /// Initializes a <see cref="Services.TileInfo" /> object for the Microsoft_DetailVideosStaticControl control. /// </summary> /// <returns>A <see cref="Services.TileInfo" /> object.</returns> public Services.TileInfo CreateTileInfoMicrosoft_DetailVideosStaticControl() { var tileInfo = new Services.TileInfo { CurrentId = CurrentYouTubeVideo.VideoId, Title = CurrentYouTubeVideo.Title, BackTitle = CurrentYouTubeVideo.Title, BackContent = CurrentYouTubeVideo.Summary, Count = 0, BackgroundImagePath = CurrentYouTubeVideo.VideoImageUrl, BackBackgroundImagePath = CurrentYouTubeVideo.VideoImageUrl, LogoPath = "Logo-a947df9b-f574-4979-841c-e966c0554915.png" }; return tileInfo; }
/// <summary> /// Initializes a <see cref="Services.TileInfo" /> object for the Youtube_DetailVideosStaticControl control. /// </summary> /// <returns>A <see cref="Services.TileInfo" /> object.</returns> public Services.TileInfo CreateTileInfoYoutube_DetailVideosStaticControl() { var tileInfo = new Services.TileInfo { CurrentId = CurrentYouTubeVideo.VideoId, Title = CurrentYouTubeVideo.Title, BackTitle = CurrentYouTubeVideo.Title, BackContent = CurrentYouTubeVideo.Summary, Count = 0, BackgroundImagePath = CurrentYouTubeVideo.VideoImageUrl, BackBackgroundImagePath = CurrentYouTubeVideo.VideoImageUrl, LogoPath = "Logo-9e823a0a-fcbf-4f8c-a7f4-efa1a2c27e1d.png" }; return tileInfo; }
/// <summary> /// Initializes a <see cref="TileInfo" /> object for the monuments_DetailStaticControl control. /// </summary> /// <returns>A <see cref="TileInfo" /> object.</returns> public TileInfo CreateTileInfomonuments_DetailStaticControl() { var tileInfo = new TileInfo { CurrentId = CurrentmonumentsCollectionSchema.Id.ToString(), Title = CurrentmonumentsCollectionSchema.Subtitle, BackTitle = CurrentmonumentsCollectionSchema.Subtitle, BackContent = string.Empty, Count = 0, BackgroundImagePath = CurrentmonumentsCollectionSchema.Image, BackBackgroundImagePath = CurrentmonumentsCollectionSchema.Image, LogoPath = "Logo-01a40c2e-7820-4d8b-864d-12a1eec805ac.png" }; return tileInfo; }
/// <summary> /// Initializes a <see cref="TileInfo" /> object for the AboutThisPlaceStaticControl control. /// </summary> /// <returns>A <see cref="TileInfo" /> object.</returns> public TileInfo CreateTileInfoAboutThisPlaceStaticControl() { var tileInfo = new TileInfo { CurrentId = CurrentmonumentsCollectionSchema.Id.ToString(), Title = CurrentmonumentsCollectionSchema.Description, BackTitle = CurrentmonumentsCollectionSchema.Description, BackContent = CurrentmonumentsCollectionSchema.Description, Count = 0, BackgroundImagePath = string.Empty, BackBackgroundImagePath = string.Empty, LogoPath = "Logo-01a40c2e-7820-4d8b-864d-12a1eec805ac.png" }; return tileInfo; }
/// <summary> /// Initializes a <see cref="TileInfo" /> object for the blog_DetailStaticControl control. /// </summary> /// <returns>A <see cref="TileInfo" /> object.</returns> public TileInfo CreateTileInfoblog_DetailStaticControl() { var tileInfo = new TileInfo { CurrentId = CurrentRssSearchResult.Title, Title = CurrentRssSearchResult.Title, BackTitle = CurrentRssSearchResult.Title, BackContent = CurrentRssSearchResult.Content, Count = 0, BackgroundImagePath = CurrentRssSearchResult.ImageUrl, BackBackgroundImagePath = CurrentRssSearchResult.ImageUrl, LogoPath = "Logo-3ed85fce-a84f-465c-836d-47785f43766a.png" }; return tileInfo; }
/// <summary> /// Initializes a <see cref="TileInfo" /> object for the fellows_DetailStaticControl control. /// </summary> /// <returns>A <see cref="TileInfo" /> object.</returns> public TileInfo CreateTileInfofellows_DetailStaticControl() { var tileInfo = new TileInfo { CurrentId = CurrentfellowsSchema.Id.ToString(), Title = CurrentfellowsSchema.Subtitle, BackTitle = CurrentfellowsSchema.Subtitle, BackContent = CurrentfellowsSchema.Description, Count = 0, BackgroundImagePath = CurrentfellowsSchema.Image, BackBackgroundImagePath = CurrentfellowsSchema.Image, LogoPath = "Logo-fee674dd-17e3-4874-ad8f-9b2146854d85.png" }; return tileInfo; }
/// <summary> /// Initializes a <see cref="Services.TileInfo" /> object for the Thai_DetailStaticControl control. /// </summary> /// <returns>A <see cref="Services.TileInfo" /> object.</returns> public Services.TileInfo CreateTileInfoThai_DetailStaticControl() { var tileInfo = new Services.TileInfo { CurrentId = CurrentThaiSchema.Id.ToString(), Title = CurrentThaiSchema.Subtitle, BackTitle = CurrentThaiSchema.Subtitle, BackContent = CurrentThaiSchema.Description, Count = 0, BackgroundImagePath = CurrentThaiSchema.Image, BackBackgroundImagePath = CurrentThaiSchema.Image, LogoPath = "Item-88d6e0cf-33a5-48ca-8c1f-d46142964cd8.png" }; return tileInfo; }
/// <summary> /// Initializes a <see cref="Services.TileInfo" /> object for the movieoftheweek_DetailStaticControl control. /// </summary> /// <returns>A <see cref="Services.TileInfo" /> object.</returns> public Services.TileInfo CreateTileInfomovieoftheweek_DetailStaticControl() { var tileInfo = new Services.TileInfo { CurrentId = CurrentRssSearchResult.Title, Title = CurrentRssSearchResult.Title, BackTitle = CurrentRssSearchResult.Title, BackContent = CurrentRssSearchResult.Content, Count = 0, BackgroundImagePath = CurrentRssSearchResult.ImageUrl, BackBackgroundImagePath = CurrentRssSearchResult.ImageUrl, LogoPath = "Logo-ee1683e8-d47b-47fb-83b9-cfccc204fafa.png" }; return tileInfo; }
/// <summary> /// Initializes a <see cref="Services.TileInfo" /> object for the AboutTheseChannels_InfoHtmlControl control. /// </summary> /// <returns>A <see cref="Services.TileInfo" /> object.</returns> public Services.TileInfo CreateTileInfoAboutTheseChannels_InfoHtmlControl() { var tileInfo = new Services.TileInfo { CurrentId = @"about the game", Title = @"about the game", BackTitle = @"about the game", BackContent = CurrentAboutTheseChannels_InfoHtmlControl, Count = 0, BackgroundImagePath = string.Empty, BackBackgroundImagePath = string.Empty, LogoPath = "Logo-a947df9b-f574-4979-841c-e966c0554915.png" }; return tileInfo; }
private async Task CheckRemoteImages(TileInfo tileInfo) { if (!string.IsNullOrEmpty(tileInfo.BackBackgroundImagePath)) tileInfo.BackBackgroundImagePath = await SetTileImagePath(tileInfo, tileInfo.BackBackgroundImagePath); if (!string.IsNullOrEmpty(tileInfo.BackgroundImagePath)) tileInfo.BackgroundImagePath = await SetTileImagePath(tileInfo, tileInfo.BackgroundImagePath); }
/// <summary> /// Initializes a <see cref="Services.TileInfo" /> object for the starters_DetailStaticControl control. /// </summary> /// <returns>A <see cref="Services.TileInfo" /> object.</returns> public Services.TileInfo CreateTileInfostarters_DetailStaticControl() { var tileInfo = new Services.TileInfo { CurrentId = CurrentstartersSchema.Id.ToString(), Title = CurrentstartersSchema.Subtitle, BackTitle = CurrentstartersSchema.Subtitle, BackContent = CurrentstartersSchema.Description, Count = 0, BackgroundImagePath = CurrentstartersSchema.Image, BackBackgroundImagePath = CurrentstartersSchema.Image, LogoPath = "Logo-aa87c77c-d4e9-4a1d-82d9-d75b739152cb.png" }; return tileInfo; }
/// <summary> /// Initializes a <see cref="Services.TileInfo" /> object for the info_InfoHtmlControl control. /// </summary> /// <returns>A <see cref="Services.TileInfo" /> object.</returns> public Services.TileInfo CreateTileInfoinfo_InfoHtmlControl() { var tileInfo = new Services.TileInfo { CurrentId = @"info", Title = @"info", BackTitle = @"info", BackContent = Currentinfo_InfoHtmlControl, Count = 0, BackgroundImagePath = string.Empty, BackBackgroundImagePath = string.Empty, LogoPath = "Logo-cfb601a5-b86b-4c80-963d-208f9e1498e4.png" }; return tileInfo; }
/// <summary> /// Initializes a <see cref="TileInfo" /> object for the VideoAlbum_DetailVideosStaticControl control. /// </summary> /// <returns>A <see cref="TileInfo" /> object.</returns> public TileInfo CreateTileInfoVideoAlbum_DetailVideosStaticControl() { var tileInfo = new TileInfo { CurrentId = CurrentYouTubeVideo.VideoId, Title = CurrentYouTubeVideo.Title, BackTitle = CurrentYouTubeVideo.Title, BackContent = string.Empty, Count = 0, BackgroundImagePath = CurrentYouTubeVideo.VideoImageUrl, BackBackgroundImagePath = CurrentYouTubeVideo.VideoImageUrl, LogoPath = "Logo-eb4b8914-786c-479a-9e60-254e2bb0549e.png" }; return tileInfo; }
/// <summary> /// Initializes a <see cref="Services.TileInfo" /> object for the costumes_DetailStaticControl control. /// </summary> /// <returns>A <see cref="Services.TileInfo" /> object.</returns> public Services.TileInfo CreateTileInfocostumes_DetailStaticControl() { var tileInfo = new Services.TileInfo { CurrentId = CurrentsuitsCollectionSchema.Id.ToString(), Title = CurrentsuitsCollectionSchema.Subtitle, BackTitle = CurrentsuitsCollectionSchema.Subtitle, BackContent = CurrentsuitsCollectionSchema.Description, Count = 0, BackgroundImagePath = CurrentsuitsCollectionSchema.Image, BackBackgroundImagePath = CurrentsuitsCollectionSchema.Image, LogoPath = "Logo-e2c6717e-5ff9-42f1-abdc-bdb215166c74.png" }; return tileInfo; }
/// <summary> /// Initializes a <see cref="Services.TileInfo" /> object for the GiveawaysFeed_DetailStaticControl control. /// </summary> /// <returns>A <see cref="Services.TileInfo" /> object.</returns> public Services.TileInfo CreateTileInfoGiveawaysFeed_DetailStaticControl() { var tileInfo = new Services.TileInfo { CurrentId = CurrentRssSearchResult.Title, Title = CurrentRssSearchResult.Title, BackTitle = CurrentRssSearchResult.Title, BackContent = CurrentRssSearchResult.Content, Count = 0, BackgroundImagePath = CurrentRssSearchResult.ImageUrl, BackBackgroundImagePath = CurrentRssSearchResult.ImageUrl, LogoPath = "Logo-242457de-80da-42c9-9fbb-98b5451c622c.png" }; return tileInfo; }
/// <summary> /// Initializes a <see cref="Services.TileInfo" /> object for the bgkigallery_DetailStaticControl control. /// </summary> /// <returns>A <see cref="Services.TileInfo" /> object.</returns> public Services.TileInfo CreateTileInfobgkigallery_DetailStaticControl() { var tileInfo = new Services.TileInfo { CurrentId = CurrentRssSearchResult.Title, Title = CurrentRssSearchResult.Title, BackTitle = CurrentRssSearchResult.Title, BackContent = string.Empty, Count = 0, BackgroundImagePath = CurrentRssSearchResult.ImageUrl, BackBackgroundImagePath = CurrentRssSearchResult.ImageUrl, LogoPath = "Logo-cfb601a5-b86b-4c80-963d-208f9e1498e4.png" }; return tileInfo; }
/// <summary> /// Initializes a <see cref="Services.TileInfo" /> object for the TheStory_InfoHtmlControl control. /// </summary> /// <returns>A <see cref="Services.TileInfo" /> object.</returns> public Services.TileInfo CreateTileInfoTheStory_InfoHtmlControl() { var tileInfo = new Services.TileInfo { CurrentId = @"the story", Title = @"the story", BackTitle = @"the story", BackContent = CurrentTheStory_InfoHtmlControl, Count = 0, BackgroundImagePath = string.Empty, BackBackgroundImagePath = string.Empty, LogoPath = "Logo-86d55146-95c6-4b0c-8665-4d5dbaa5a5db.png" }; return tileInfo; }
/// <summary> /// Initializes a <see cref="Services.TileInfo" /> object for the Videos_DetailVideosStaticControl control. /// </summary> /// <returns>A <see cref="Services.TileInfo" /> object.</returns> public Services.TileInfo CreateTileInfoVideos_DetailVideosStaticControl() { var tileInfo = new Services.TileInfo { CurrentId = CurrentYouTubeVideo.VideoId, Title = CurrentYouTubeVideo.Title, BackTitle = CurrentYouTubeVideo.Title, BackContent = CurrentYouTubeVideo.Summary, Count = 0, BackgroundImagePath = CurrentYouTubeVideo.VideoImageUrl, BackBackgroundImagePath = CurrentYouTubeVideo.VideoImageUrl, LogoPath = "Logo-242457de-80da-42c9-9fbb-98b5451c622c.png" }; return tileInfo; }
/// <summary> /// Initializes a <see cref="TileInfo" /> object for the PhotoAlbum_DetailStaticControl control. /// </summary> /// <returns>A <see cref="TileInfo" /> object.</returns> public TileInfo CreateTileInfoPhotoAlbum_DetailStaticControl() { var tileInfo = new TileInfo { CurrentId = CurrentRssSearchResult.Title, Title = CurrentRssSearchResult.Title, BackTitle = CurrentRssSearchResult.Title, BackContent = string.Empty, Count = 0, BackgroundImagePath = CurrentRssSearchResult.ImageUrl, BackBackgroundImagePath = CurrentRssSearchResult.ImageUrl, LogoPath = "Logo-01a40c2e-7820-4d8b-864d-12a1eec805ac.png" }; return tileInfo; }
/// <summary> /// Initializes a <see cref="Services.TileInfo" /> object for the AboutTheseChannels_InfoHtmlControl control. /// </summary> /// <returns>A <see cref="Services.TileInfo" /> object.</returns> public Services.TileInfo CreateTileInfoAboutTheseChannels_InfoHtmlControl() { var tileInfo = new Services.TileInfo { CurrentId = @"About Mr. Bean", Title = @"About Mr. Bean", BackTitle = @"About Mr. Bean", BackContent = CurrentAboutTheseChannels_InfoHtmlControl, Count = 0, BackgroundImagePath = string.Empty, BackBackgroundImagePath = string.Empty, LogoPath = "Logo-249d64f4-648d-4391-b714-56b80fa53b89.png" }; return tileInfo; }
private async Task<string> SetTileImagePath(TileInfo tileInfo, string image) { try { var transferUri = new Uri(Uri.EscapeUriString(image), UriKind.RelativeOrAbsolute); if (transferUri.ToString().StartsWith("http")) { var localUri = new Uri(LiveTileFolder + Path.GetFileName(transferUri.LocalPath), UriKind.RelativeOrAbsolute); await DownloadFile(transferUri, localUri); return IsoStorePreffix + localUri; } return ResourcePath + Path.GetFileName(!string.IsNullOrEmpty(image) ? image : tileInfo.LogoPath); } catch (Exception ex) { Debug.WriteLine("{0} {1}{2}", AppResources.TileError, AppResources.Error, ex.ToString()); return string.Empty; } }
/// <summary> /// Initializes a <see cref="Services.TileInfo" /> object for the Pictures_DetailStaticControl control. /// </summary> /// <returns>A <see cref="Services.TileInfo" /> object.</returns> public Services.TileInfo CreateTileInfoPictures_DetailStaticControl() { var tileInfo = new Services.TileInfo { CurrentId = CurrentFlickrSearchResult.Image, Title = CurrentFlickrSearchResult.Title, BackTitle = CurrentFlickrSearchResult.Title, BackContent = CurrentFlickrSearchResult.Summary, Count = 0, BackgroundImagePath = CurrentFlickrSearchResult.Image, BackBackgroundImagePath = CurrentFlickrSearchResult.Image, LogoPath = "Logo-9e823a0a-fcbf-4f8c-a7f4-efa1a2c27e1d.png" }; return tileInfo; }