@@ -21,6 +21,8 @@ using System.Net;
|
||||
using Windows.UI.Popups;
|
||||
using Windows.Networking.Connectivity;
|
||||
using Windows.UI.Core;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace FoxTube
|
||||
{
|
||||
@@ -67,6 +69,12 @@ namespace FoxTube
|
||||
SetTitleBar();
|
||||
}
|
||||
|
||||
protected override void OnNavigatedTo(NavigationEventArgs e)
|
||||
{
|
||||
base.OnNavigatedTo(e);
|
||||
content.Navigate(typeof(Home));
|
||||
}
|
||||
|
||||
public Video GetCurrentItem()
|
||||
{
|
||||
try { return (videoPlaceholder.Content as VideoPage).item; }
|
||||
@@ -234,11 +242,11 @@ namespace FoxTube
|
||||
|
||||
await dialog.ShowAsync();
|
||||
}
|
||||
|
||||
content.Navigate(typeof(Home));
|
||||
|
||||
if (videoPlaceholder.Content != null)
|
||||
GoToVideo((videoPlaceholder.Content as VideoPage).videoId);
|
||||
|
||||
nav.SelectedItem = toHome;
|
||||
}
|
||||
|
||||
private async void feedback_Click(object sender, TappedRoutedEventArgs e)
|
||||
@@ -487,6 +495,7 @@ namespace FoxTube
|
||||
|
||||
private void nav_SelectionChanged(NavigationView sender, NavigationViewSelectionChangedEventArgs args)
|
||||
{
|
||||
Debug.WriteLine("Menu selection changed");
|
||||
try
|
||||
{
|
||||
if (s == Sender.None)
|
||||
@@ -522,6 +531,7 @@ namespace FoxTube
|
||||
|
||||
public void content_Navigated(object sender, NavigationEventArgs e)
|
||||
{
|
||||
Debug.WriteLine($"Navigated to {e.SourcePageType}");
|
||||
Dictionary<Type, Action> switchCase = new Dictionary<Type, Action>()
|
||||
{
|
||||
{ typeof(Settings), () => nav.Header = "Settings" },
|
||||
|
||||
Reference in New Issue
Block a user