@@ -1,18 +1,15 @@
|
||||
using System;
|
||||
using Windows.UI.Xaml;
|
||||
using Windows.UI.Xaml.Controls;
|
||||
|
||||
using Google.Apis.YouTube.v3;
|
||||
using Google.Apis.YouTube.v3.Data;
|
||||
using FoxTube.Controls;
|
||||
using Windows.UI.Popups;
|
||||
|
||||
// The Blank Page item template is documented at https://go.microsoft.com/fwlink/?LinkId=234238
|
||||
|
||||
namespace FoxTube.Pages
|
||||
{
|
||||
/// <summary>
|
||||
/// An empty page that can be used on its own or navigated to within a Frame.
|
||||
/// Comments placeholder
|
||||
/// </summary>
|
||||
public sealed partial class CommentsPage : Page
|
||||
{
|
||||
@@ -29,6 +26,7 @@ namespace FoxTube.Pages
|
||||
public async void Initialize(Video video)
|
||||
{
|
||||
threadId = video.Id;
|
||||
Methods.CommentsPage = this;
|
||||
|
||||
if (!SecretsVault.IsAuthorized)
|
||||
grid.RowDefinitions[0].Height = new GridLength(0);
|
||||
@@ -53,6 +51,11 @@ namespace FoxTube.Pages
|
||||
placeholder.Children.Add(new CommentCard(comment));
|
||||
}
|
||||
|
||||
public void RemoveComment(CommentCard commentCard)
|
||||
{
|
||||
placeholder.Children.Remove(commentCard);
|
||||
}
|
||||
|
||||
private async void more_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
more.Visibility = Visibility.Collapsed;
|
||||
|
||||
@@ -444,7 +444,8 @@ namespace FoxTube
|
||||
else
|
||||
{
|
||||
nav.CompactModeThresholdWidth = 641;
|
||||
nav.ExpandedModeThresholdWidth = 1008;
|
||||
if(videoPlaceholder.Content == null)
|
||||
nav.ExpandedModeThresholdWidth = 1008;
|
||||
nav.Margin = new Thickness(0);
|
||||
if (videoPlaceholder.Content != null && nav.IsPaneOpen)
|
||||
nav.IsPaneOpen = false;
|
||||
|
||||
Reference in New Issue
Block a user