Bug fixes
This commit is contained in:
@@ -27,7 +27,7 @@
|
||||
<RowDefinition/>
|
||||
<RowDefinition Height="auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
<TextBlock Name="meta" Foreground="Gray" FontSize="13" Text="[Author's name] | [Published time span] [?](edited)"/>
|
||||
<TextBlock Name="meta" TextWrapping="WrapWholeWords" Foreground="Gray" FontSize="13" Text="[Author's name] | [Published time span] [?](edited)"/>
|
||||
<TextBlock Name="text" IsTextSelectionEnabled="True" TextWrapping="WrapWholeWords" Grid.Row="1" Text="[Content]"/>
|
||||
|
||||
<StackPanel Grid.Row="1" Name="editor" Visibility="Collapsed">
|
||||
|
||||
@@ -109,7 +109,7 @@ namespace FoxTube.Controls
|
||||
else
|
||||
rating.Text = comment.Snippet.LikeCount.HasValue ? comment.Snippet.LikeCount.ToString() : "";
|
||||
|
||||
meta.Text = string.Format("{0} | {1} {2}", comment.Snippet.AuthorDisplayName, Methods.GetAgo(comment.Snippet.PublishedAt.Value), comment.Snippet.UpdatedAt.HasValue ? "(edited)" : "");
|
||||
meta.Text = string.Format("{0} | {1} {2}", comment.Snippet.AuthorDisplayName, Methods.GetAgo(comment.Snippet.PublishedAt.Value), comment.Snippet.UpdatedAt.Value != comment.Snippet.PublishedAt.Value ? "(edited)" : "");
|
||||
text.Text = comment.Snippet.TextDisplay;
|
||||
|
||||
try { avatar.ProfilePicture = new BitmapImage(new Uri(comment.Snippet.AuthorProfileImageUrl)); }
|
||||
|
||||
@@ -743,7 +743,7 @@ namespace FoxTube
|
||||
videoSource.Pause();
|
||||
}
|
||||
|
||||
private void minimize_Click(object sender, RoutedEventArgs e)
|
||||
public void minimize_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
if(fullScreen)
|
||||
{
|
||||
|
||||
@@ -423,7 +423,7 @@ namespace FoxTube
|
||||
|
||||
public void GoToChannel(string id)
|
||||
{
|
||||
MinimizeVideo();
|
||||
MinimizeAsInitializer();
|
||||
content.Navigate(typeof(ChannelPage), id);
|
||||
}
|
||||
|
||||
@@ -445,13 +445,13 @@ namespace FoxTube
|
||||
|
||||
public void GoToDeveloper(string id)
|
||||
{
|
||||
MinimizeVideo();
|
||||
MinimizeAsInitializer();
|
||||
content.Navigate(typeof(Settings), "inbox");
|
||||
}
|
||||
|
||||
public void GoToPlaylist(string id)
|
||||
{
|
||||
MinimizeVideo();
|
||||
MinimizeAsInitializer();
|
||||
content.Navigate(typeof(PlaylistPage), id);
|
||||
}
|
||||
|
||||
@@ -498,6 +498,14 @@ namespace FoxTube
|
||||
}
|
||||
}
|
||||
|
||||
public void MinimizeAsInitializer()
|
||||
{
|
||||
try
|
||||
{
|
||||
(videoPlaceholder.Content as VideoPage).player.minimize_Click(this, null);
|
||||
}
|
||||
}
|
||||
|
||||
public void MinimizeVideo()
|
||||
{
|
||||
videoPlaceholder.Width = 432;
|
||||
|
||||
Reference in New Issue
Block a user