private async Task<VoiceCommandContentTile> GetDesambiguationTileAsync(President president) { // Build a tile from selected country flag // Construit une tuile à partir du drapeau selectionné return new VoiceCommandContentTile { ContentTileType = VoiceCommandContentTileType.TitleOnly, AppContext = president, AppLaunchArgument = "selectedid=" + president.Id, Title = president.Name }; }
private async Task<VoiceCommandContentTile> GetPresidentTileAsync(President president) { // Build a tile from selected country flag // Construit une tuile à partir du drapeau selectionné return new VoiceCommandContentTile { ContentTileType = VoiceCommandContentTileType.TitleWith68x68IconAndText, AppContext = president, AppLaunchArgument = "selectedid=" + president.Id, Title = president.Name, TextLine1 = president.RawTerms, TextLine2 = president.Party, Image = await StorageFile.GetFileFromApplicationUriAsync( new Uri("ms-appx:///PresidentsService/Assets/PresidentSeal.png")) }; }