Bug fixes
This commit is contained in:
@@ -27,7 +27,7 @@
|
|||||||
<RowDefinition/>
|
<RowDefinition/>
|
||||||
<RowDefinition Height="auto"/>
|
<RowDefinition Height="auto"/>
|
||||||
</Grid.RowDefinitions>
|
</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]"/>
|
<TextBlock Name="text" IsTextSelectionEnabled="True" TextWrapping="WrapWholeWords" Grid.Row="1" Text="[Content]"/>
|
||||||
|
|
||||||
<StackPanel Grid.Row="1" Name="editor" Visibility="Collapsed">
|
<StackPanel Grid.Row="1" Name="editor" Visibility="Collapsed">
|
||||||
|
|||||||
@@ -109,7 +109,7 @@ namespace FoxTube.Controls
|
|||||||
else
|
else
|
||||||
rating.Text = comment.Snippet.LikeCount.HasValue ? comment.Snippet.LikeCount.ToString() : "";
|
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;
|
text.Text = comment.Snippet.TextDisplay;
|
||||||
|
|
||||||
try { avatar.ProfilePicture = new BitmapImage(new Uri(comment.Snippet.AuthorProfileImageUrl)); }
|
try { avatar.ProfilePicture = new BitmapImage(new Uri(comment.Snippet.AuthorProfileImageUrl)); }
|
||||||
|
|||||||
@@ -743,7 +743,7 @@ namespace FoxTube
|
|||||||
videoSource.Pause();
|
videoSource.Pause();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void minimize_Click(object sender, RoutedEventArgs e)
|
public void minimize_Click(object sender, RoutedEventArgs e)
|
||||||
{
|
{
|
||||||
if(fullScreen)
|
if(fullScreen)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -423,7 +423,7 @@ namespace FoxTube
|
|||||||
|
|
||||||
public void GoToChannel(string id)
|
public void GoToChannel(string id)
|
||||||
{
|
{
|
||||||
MinimizeVideo();
|
MinimizeAsInitializer();
|
||||||
content.Navigate(typeof(ChannelPage), id);
|
content.Navigate(typeof(ChannelPage), id);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -445,13 +445,13 @@ namespace FoxTube
|
|||||||
|
|
||||||
public void GoToDeveloper(string id)
|
public void GoToDeveloper(string id)
|
||||||
{
|
{
|
||||||
MinimizeVideo();
|
MinimizeAsInitializer();
|
||||||
content.Navigate(typeof(Settings), "inbox");
|
content.Navigate(typeof(Settings), "inbox");
|
||||||
}
|
}
|
||||||
|
|
||||||
public void GoToPlaylist(string id)
|
public void GoToPlaylist(string id)
|
||||||
{
|
{
|
||||||
MinimizeVideo();
|
MinimizeAsInitializer();
|
||||||
content.Navigate(typeof(PlaylistPage), id);
|
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()
|
public void MinimizeVideo()
|
||||||
{
|
{
|
||||||
videoPlaceholder.Width = 432;
|
videoPlaceholder.Width = 432;
|
||||||
|
|||||||
Reference in New Issue
Block a user