/// <summary> /// /// </summary> /// <param name="doc"></param> /// <param name="track"></param> /// <returns>the URI of the tile image</returns> protected async Task <Uri> SetImage(XmlDocument doc, MusicItem track) { var imageUri = await GetCoverUriOrDefault(track); TileUtil.SetImage(doc, imageUri); return(imageUri); }
public override void BeforeSquareWideUpdate(XmlDocument doc, MusicItem track, Uri imageUri) { var largeXml = TileUpdateManager.GetTemplateContent(TileTemplateType.TileSquare310x310ImageAndText02); TileUtil.SetImage(largeXml, imageUri); SetMeta(largeXml, track, includeAlbum: false); TileUtil.Embed(src: largeXml, dest: doc); }