Archived
1
0

Fixed xml escape symbols in notifications title

Fixed ChannelCard
Added "Share" button to VideoCard
This commit is contained in:
Michael Gordeev
2019-04-13 19:25:54 +03:00
parent 853a219456
commit b0ecac7c02
9 changed files with 40 additions and 20 deletions
+16
View File
@@ -12,6 +12,7 @@ using System.Collections.Generic;
using YoutubeExplode;
using Windows.UI.Popups;
using YoutubeExplode.Models.MediaStreams;
using Windows.Foundation;
namespace FoxTube.Controls
{
@@ -233,6 +234,21 @@ namespace FoxTube.Controls
Methods.MainPage.GoToVideo(videoId, playlistId);
}
private void Share(DataTransferManager sender, DataRequestedEventArgs args)
{
Methods.Share(args,
item.Snippet.Thumbnails.Medium.Url,
item.Snippet.Title,
$"https://www.youtube.com/watch?v={videoId}",
resources.GetString("/Cards/videoShare"));
}
private void share_Click(object sender, RoutedEventArgs e)
{
DataTransferManager.GetForCurrentView().DataRequested += new TypedEventHandler<DataTransferManager, DataRequestedEventArgs>(Share);
DataTransferManager.ShowShareUI();
}
private void ViewChannel_Click(object sender, RoutedEventArgs e)
{
Methods.MainPage.GoToChannel(item.Snippet.ChannelId);