diff --git a/FoxTube/Home.xaml b/FoxTube/Home.xaml
index dc7ccca..0356e42 100644
--- a/FoxTube/Home.xaml
+++ b/FoxTube/Home.xaml
@@ -9,27 +9,39 @@
-
+
-
-
-
-
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/FoxTube/Home.xaml.cs b/FoxTube/Home.xaml.cs
index 9ce28df..a68a23c 100644
--- a/FoxTube/Home.xaml.cs
+++ b/FoxTube/Home.xaml.cs
@@ -25,7 +25,6 @@ namespace FoxTube
public Home()
{
this.InitializeComponent();
- content.Navigate(typeof(VideoGrid));
}
}
}
diff --git a/FoxTube/MainPage.xaml.cs b/FoxTube/MainPage.xaml.cs
index c7af5fd..c681b08 100644
--- a/FoxTube/MainPage.xaml.cs
+++ b/FoxTube/MainPage.xaml.cs
@@ -30,6 +30,7 @@ using Google.Apis.YouTube.v3.Data;
using System.Threading.Tasks;
using System.Threading;
using Google.Apis.Util.Store;
+using System.Globalization;
// The Blank Page item template is documented at https://go.microsoft.com/fwlink/?LinkId=402352&clcid=0x409
@@ -83,7 +84,10 @@ namespace FoxTube
settings.Values.Add("videoAutoplay", true);
if (settings.Values["volume"] == null)
settings.Values.Add("volume", 100);
-
+
+ if (settings.Values["region"] == null)
+ settings.Values.Add("region", CultureInfo.CurrentCulture);
+
content.Navigate(typeof(Home));
}
diff --git a/FoxTube/Settings.xaml b/FoxTube/Settings.xaml
index 6cfd29e..8fcb883 100644
--- a/FoxTube/Settings.xaml
+++ b/FoxTube/Settings.xaml
@@ -17,7 +17,8 @@
-
+
+
@@ -25,6 +26,10 @@
+
+
+
+
diff --git a/FoxTube/Settings.xaml.cs b/FoxTube/Settings.xaml.cs
index f92743b..b4f6a86 100644
--- a/FoxTube/Settings.xaml.cs
+++ b/FoxTube/Settings.xaml.cs
@@ -4,6 +4,7 @@ using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Windows.ApplicationModel;
+using System.Globalization;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.Storage;
@@ -46,6 +47,9 @@ namespace FoxTube
mobileWarning.IsOn = (bool)settings.Values["moblieWarning"];
autoplay.IsOn = (bool)settings.Values["videoAutoplay"];
+
+ foreach (CultureInfo culture in CultureInfo.GetCultures(CultureTypes.AllCultures))
+ region.Items.Add(culture.DisplayName);
}
private void language_SelectionChanged(object sender, SelectionChangedEventArgs e)
@@ -128,5 +132,10 @@ namespace FoxTube
{
content.SelectedIndex = 3;
}
+
+ private void region_SelectionChanged(object sender, SelectionChangedEventArgs e)
+ {
+ settings.Values["region"] = CultureInfo.GetCultures(CultureTypes.AllCultures)[region.SelectedIndex];
+ }
}
}