Settings menu
This commit is contained in:
@@ -0,0 +1,48 @@
|
|||||||
|
<Page
|
||||||
|
x:Class="FoxTube.About"
|
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:local="using:FoxTube"
|
||||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
|
mc:Ignorable="d">
|
||||||
|
|
||||||
|
<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
|
||||||
|
<StackPanel Orientation="Vertical" Margin="10">
|
||||||
|
<TextBlock Text="About us and this app" FontSize="28"/>
|
||||||
|
<TextBlock Text="FoxTube" FontSize="24"/>
|
||||||
|
<TextBlock Name="version" Text="[currentVersion]" FontSize="14" Foreground="Gray" Margin="0,-5,0,10"/>
|
||||||
|
<TextBlock Text="Developed by Michael Gordeev (also known as XFox)" Margin="0,0,0,10"/>
|
||||||
|
<TextBlock Text="Special thanks to contributors for motivating me, testers and translators for making this app better everyday and you for using this app;)" Margin="0,0,0,10"/>
|
||||||
|
<TextBlock Text="Contacts" FontSize="22" FontWeight="SemiBold"/>
|
||||||
|
<StackPanel Orientation="Horizontal">
|
||||||
|
<TextBlock Text="Twitter:" Margin="0,0,5,0"/>
|
||||||
|
<HyperlinkButton Content="@XFox.Mike" Padding="0"/>
|
||||||
|
</StackPanel>
|
||||||
|
<StackPanel Orientation="Horizontal">
|
||||||
|
<TextBlock Text="Facebook:" Margin="0,0,5,0"/>
|
||||||
|
<HyperlinkButton Content="@XFox.Mike" Padding="0"/>
|
||||||
|
</StackPanel>
|
||||||
|
<StackPanel Orientation="Horizontal">
|
||||||
|
<TextBlock Text="VKontakte:" Margin="0,0,5,0"/>
|
||||||
|
<HyperlinkButton Content="@XFox.Mike" Padding="0"/>
|
||||||
|
</StackPanel>
|
||||||
|
<StackPanel Orientation="Horizontal">
|
||||||
|
<TextBlock Text="YouTube:" Margin="0,0,5,0"/>
|
||||||
|
<HyperlinkButton Content="youtube.com/c/FoxGameStudioChannel " Padding="0"/>
|
||||||
|
</StackPanel>
|
||||||
|
<StackPanel Orientation="Horizontal">
|
||||||
|
<TextBlock Text="E-mail:" Margin="0,0,5,0"/>
|
||||||
|
<HyperlinkButton Content="foxgameofficial@gmail.com" Padding="0"/>
|
||||||
|
</StackPanel>
|
||||||
|
<StackPanel Orientation="Horizontal">
|
||||||
|
<TextBlock Text="Official website (Russian):" Margin="0,0,5,0"/>
|
||||||
|
<HyperlinkButton Content="foxgame.hol.es" Padding="0"/>
|
||||||
|
</StackPanel>
|
||||||
|
<TextBlock/>
|
||||||
|
<TextBlock Text="Copyright © 2018 FoxGame Studio. All rights reserved."/>
|
||||||
|
<HyperlinkButton Content="Privacy Policy"/>
|
||||||
|
<Image Source="Assets/FoxGame.png" Width="300" HorizontalAlignment="Left"/>
|
||||||
|
</StackPanel>
|
||||||
|
</Grid>
|
||||||
|
</Page>
|
||||||
@@ -0,0 +1,33 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.IO;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Runtime.InteropServices.WindowsRuntime;
|
||||||
|
using Windows.ApplicationModel;
|
||||||
|
using Windows.Foundation;
|
||||||
|
using Windows.Foundation.Collections;
|
||||||
|
using Windows.UI.Xaml;
|
||||||
|
using Windows.UI.Xaml.Controls;
|
||||||
|
using Windows.UI.Xaml.Controls.Primitives;
|
||||||
|
using Windows.UI.Xaml.Data;
|
||||||
|
using Windows.UI.Xaml.Input;
|
||||||
|
using Windows.UI.Xaml.Media;
|
||||||
|
using Windows.UI.Xaml.Navigation;
|
||||||
|
|
||||||
|
// The Blank Page item template is documented at https://go.microsoft.com/fwlink/?LinkId=234238
|
||||||
|
|
||||||
|
namespace FoxTube
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// An empty page that can be used on its own or navigated to within a Frame.
|
||||||
|
/// </summary>
|
||||||
|
public sealed partial class About : Page
|
||||||
|
{
|
||||||
|
PackageVersion ver = Package.Current.Id.Version;
|
||||||
|
public About()
|
||||||
|
{
|
||||||
|
this.InitializeComponent();
|
||||||
|
version.Text = string.Format("{0}.{1}.{2}" , ver.Major, ver.Minor, ver.Build);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 30 KiB |
@@ -92,9 +92,15 @@
|
|||||||
<RestoreProjectStyle>PackageReference</RestoreProjectStyle>
|
<RestoreProjectStyle>PackageReference</RestoreProjectStyle>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
<Compile Include="About.xaml.cs">
|
||||||
|
<DependentUpon>About.xaml</DependentUpon>
|
||||||
|
</Compile>
|
||||||
<Compile Include="App.xaml.cs">
|
<Compile Include="App.xaml.cs">
|
||||||
<DependentUpon>App.xaml</DependentUpon>
|
<DependentUpon>App.xaml</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
<Compile Include="General.xaml.cs">
|
||||||
|
<DependentUpon>General.xaml</DependentUpon>
|
||||||
|
</Compile>
|
||||||
<Compile Include="MainFrame.xaml.cs">
|
<Compile Include="MainFrame.xaml.cs">
|
||||||
<DependentUpon>MainFrame.xaml</DependentUpon>
|
<DependentUpon>MainFrame.xaml</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
@@ -103,6 +109,12 @@
|
|||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="Notification.cs" />
|
<Compile Include="Notification.cs" />
|
||||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
|
<Compile Include="Settings.xaml.cs">
|
||||||
|
<DependentUpon>Settings.xaml</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="Translate.xaml.cs">
|
||||||
|
<DependentUpon>Translate.xaml</DependentUpon>
|
||||||
|
</Compile>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<AppxManifest Include="Package.appxmanifest">
|
<AppxManifest Include="Package.appxmanifest">
|
||||||
@@ -112,6 +124,7 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Content Include="Assets\AnnouncementThumb.png" />
|
<Content Include="Assets\AnnouncementThumb.png" />
|
||||||
|
<Content Include="Assets\FoxGame.png" />
|
||||||
<Content Include="Assets\LargeTile.scale-100.png" />
|
<Content Include="Assets\LargeTile.scale-100.png" />
|
||||||
<Content Include="Assets\LargeTile.scale-125.png" />
|
<Content Include="Assets\LargeTile.scale-125.png" />
|
||||||
<Content Include="Assets\LargeTile.scale-150.png" />
|
<Content Include="Assets\LargeTile.scale-150.png" />
|
||||||
@@ -168,6 +181,14 @@
|
|||||||
<Generator>MSBuild:Compile</Generator>
|
<Generator>MSBuild:Compile</Generator>
|
||||||
<SubType>Designer</SubType>
|
<SubType>Designer</SubType>
|
||||||
</ApplicationDefinition>
|
</ApplicationDefinition>
|
||||||
|
<Page Include="About.xaml">
|
||||||
|
<SubType>Designer</SubType>
|
||||||
|
<Generator>MSBuild:Compile</Generator>
|
||||||
|
</Page>
|
||||||
|
<Page Include="General.xaml">
|
||||||
|
<SubType>Designer</SubType>
|
||||||
|
<Generator>MSBuild:Compile</Generator>
|
||||||
|
</Page>
|
||||||
<Page Include="MainFrame.xaml">
|
<Page Include="MainFrame.xaml">
|
||||||
<SubType>Designer</SubType>
|
<SubType>Designer</SubType>
|
||||||
<Generator>MSBuild:Compile</Generator>
|
<Generator>MSBuild:Compile</Generator>
|
||||||
@@ -176,6 +197,14 @@
|
|||||||
<Generator>MSBuild:Compile</Generator>
|
<Generator>MSBuild:Compile</Generator>
|
||||||
<SubType>Designer</SubType>
|
<SubType>Designer</SubType>
|
||||||
</Page>
|
</Page>
|
||||||
|
<Page Include="Settings.xaml">
|
||||||
|
<SubType>Designer</SubType>
|
||||||
|
<Generator>MSBuild:Compile</Generator>
|
||||||
|
</Page>
|
||||||
|
<Page Include="Translate.xaml">
|
||||||
|
<SubType>Designer</SubType>
|
||||||
|
<Generator>MSBuild:Compile</Generator>
|
||||||
|
</Page>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Microsoft.NETCore.UniversalWindowsPlatform">
|
<PackageReference Include="Microsoft.NETCore.UniversalWindowsPlatform">
|
||||||
|
|||||||
@@ -0,0 +1,40 @@
|
|||||||
|
<Page
|
||||||
|
x:Class="FoxTube.General"
|
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:local="using:FoxTube"
|
||||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
|
mc:Ignorable="d">
|
||||||
|
|
||||||
|
<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
|
||||||
|
<StackPanel Orientation="Vertical" Margin="10">
|
||||||
|
<TextBlock Text="General settings" FontSize="28"/>
|
||||||
|
<TextBlock Text="Default video playback quality"/>
|
||||||
|
<ComboBox Margin="0,0,0,10">
|
||||||
|
<ComboBoxItem Content="Auto" IsSelected="True"/>
|
||||||
|
<ComboBoxItem Content="1080p60"/>
|
||||||
|
<ComboBoxItem Content="1080p30"/>
|
||||||
|
<ComboBoxItem Content="720p60"/>
|
||||||
|
<ComboBoxItem Content="720p30"/>
|
||||||
|
<ComboBoxItem Content="480p"/>
|
||||||
|
<ComboBoxItem Content="360p"/>
|
||||||
|
<ComboBoxItem Content="240p"/>
|
||||||
|
<ComboBoxItem Content="144p"/>
|
||||||
|
</ComboBox>
|
||||||
|
<TextBlock Text="Notifications"/>
|
||||||
|
<CheckBox Content="New video" IsChecked="True"/>
|
||||||
|
<CheckBox Content="New post" IsChecked="True"/>
|
||||||
|
<CheckBox Content="New commentary" IsChecked="True"/>
|
||||||
|
<CheckBox Content="What's new posts" IsChecked="True"/>
|
||||||
|
<CheckBox Content="Developer's messages" IsChecked="True" Margin="0,0,0,10"/>
|
||||||
|
<ToggleSwitch OnContent="Notify when playing on mobile data" OffContent="Notify when playing on mobile data"/>
|
||||||
|
<ToggleSwitch OnContent="Play videos automatically" OffContent="Play videos automatically" IsOn="True" Margin="0,0,0,10"/>
|
||||||
|
<TextBlock Text="Lanuguage"/>
|
||||||
|
<ComboBox>
|
||||||
|
<ComboBoxItem Content="English" IsSelected="True"/>
|
||||||
|
<ComboBoxItem Content="Russian"/>
|
||||||
|
</ComboBox>
|
||||||
|
</StackPanel>
|
||||||
|
</Grid>
|
||||||
|
</Page>
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.IO;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Runtime.InteropServices.WindowsRuntime;
|
||||||
|
using Windows.Foundation;
|
||||||
|
using Windows.Foundation.Collections;
|
||||||
|
using Windows.UI.Xaml;
|
||||||
|
using Windows.UI.Xaml.Controls;
|
||||||
|
using Windows.UI.Xaml.Controls.Primitives;
|
||||||
|
using Windows.UI.Xaml.Data;
|
||||||
|
using Windows.UI.Xaml.Input;
|
||||||
|
using Windows.UI.Xaml.Media;
|
||||||
|
using Windows.UI.Xaml.Navigation;
|
||||||
|
|
||||||
|
// The Blank Page item template is documented at https://go.microsoft.com/fwlink/?LinkId=234238
|
||||||
|
|
||||||
|
namespace FoxTube
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// An empty page that can be used on its own or navigated to within a Frame.
|
||||||
|
/// </summary>
|
||||||
|
public sealed partial class General : Page
|
||||||
|
{
|
||||||
|
public General()
|
||||||
|
{
|
||||||
|
this.InitializeComponent();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -32,13 +32,13 @@
|
|||||||
Click="menuButton_Click"
|
Click="menuButton_Click"
|
||||||
HorizontalAlignment="Stretch" VerticalAlignment="Stretch"/>
|
HorizontalAlignment="Stretch" VerticalAlignment="Stretch"/>
|
||||||
<TextBlock Grid.Column="1" Text="Home" FontSize="20" FontWeight="Bold" Margin="5, 0, 0, 0" HorizontalAlignment="Left" VerticalAlignment="Center" Foreground="White"/>
|
<TextBlock Grid.Column="1" Text="Home" FontSize="20" FontWeight="Bold" Margin="5, 0, 0, 0" HorizontalAlignment="Left" VerticalAlignment="Center" Foreground="White"/>
|
||||||
<Button Name="goLive" Grid.Column="2" ToolTipService.ToolTip="Go to Live!"
|
<Button Name="goLive" Grid.Column="2" ToolTipService.ToolTip="Go to Live!" Visibility="Collapsed"
|
||||||
FontFamily="Segoe MDL2 Assets" Content="" Foreground="White"
|
FontFamily="Segoe MDL2 Assets" Content="" Foreground="White"
|
||||||
Width="50" Height="50" Background="#00000000" RelativePanel.LeftOf="searchField"/>
|
Width="50" Height="50" Background="#00000000" RelativePanel.LeftOf="searchField"/>
|
||||||
<Button Name="upload" Grid.Column="3" ToolTipService.ToolTip="Upload a video"
|
<Button Name="upload" Grid.Column="3" ToolTipService.ToolTip="Upload a video" Visibility="Collapsed"
|
||||||
FontFamily="Segoe MDL2 Assets" Content="" Foreground="White"
|
FontFamily="Segoe MDL2 Assets" Content="" Foreground="White"
|
||||||
Width="50" Height="50" Background="#00000000" RelativePanel.LeftOf="searchField"/>
|
Width="50" Height="50" Background="#00000000" RelativePanel.LeftOf="searchField"/>
|
||||||
<Line Grid.Column="4" Y1="40" Y2="10" StrokeThickness="1" Stroke="White" HorizontalAlignment="Center"/>
|
<Line Grid.Column="4" Y1="40" Y2="10" StrokeThickness="1" Stroke="White" HorizontalAlignment="Center" Visibility="Collapsed"/>
|
||||||
<Button Name="refresh" Grid.Column="5" ToolTipService.ToolTip="Refresh" Click="refresh_Click"
|
<Button Name="refresh" Grid.Column="5" ToolTipService.ToolTip="Refresh" Click="refresh_Click"
|
||||||
FontFamily="Segoe MDL2 Assets" Content="" Foreground="White"
|
FontFamily="Segoe MDL2 Assets" Content="" Foreground="White"
|
||||||
Width="50" Height="50" Background="#00000000" RelativePanel.LeftOf="searchField"/>
|
Width="50" Height="50" Background="#00000000" RelativePanel.LeftOf="searchField"/>
|
||||||
@@ -235,7 +235,7 @@
|
|||||||
<TextBlock Style="{StaticResource MenuItem}" Text="My channel"/>
|
<TextBlock Style="{StaticResource MenuItem}" Text="My channel"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</ListBoxItem>
|
</ListBoxItem>
|
||||||
<ListBoxItem Name="dashboardMenu">
|
<ListBoxItem Name="dashboardMenu" Visibility="Collapsed">
|
||||||
<StackPanel Orientation="Horizontal">
|
<StackPanel Orientation="Horizontal">
|
||||||
<TextBlock Style="{StaticResource ItemIcon}" Text=""/>
|
<TextBlock Style="{StaticResource ItemIcon}" Text=""/>
|
||||||
<TextBlock Style="{StaticResource MenuItem}" Text="Creator studio"/>
|
<TextBlock Style="{StaticResource MenuItem}" Text="Creator studio"/>
|
||||||
|
|||||||
@@ -32,6 +32,7 @@ namespace FoxTube
|
|||||||
public MainPage()
|
public MainPage()
|
||||||
{
|
{
|
||||||
this.InitializeComponent();
|
this.InitializeComponent();
|
||||||
|
content.Navigate(typeof(Settings));
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void OnNavigatedTo(NavigationEventArgs e)
|
protected override void OnNavigatedTo(NavigationEventArgs e)
|
||||||
|
|||||||
@@ -0,0 +1,28 @@
|
|||||||
|
<Page
|
||||||
|
x:Class="FoxTube.Settings"
|
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:local="using:FoxTube"
|
||||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
|
mc:Ignorable="d">
|
||||||
|
|
||||||
|
<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<!--<RowDefinition Height="47"/>-->
|
||||||
|
<RowDefinition Height="*"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<Grid Grid.Row="0" Background="Red" Visibility="Collapsed">
|
||||||
|
<StackPanel Orientation="Horizontal">
|
||||||
|
<HyperlinkButton Content="General" Foreground="White" Margin="10,8,10,10" Name="GeneralMenu" Click="General_Click"/>
|
||||||
|
<HyperlinkButton Content="Personalization" Foreground="White" Margin="10,8,10,10" Name="PersonalizationMenu" Click="Personalization_Click"/>
|
||||||
|
<HyperlinkButton Content="Account" Foreground="White" Margin="10,8,10,10" Name="AccountMenu" Click="Account_Click"/>
|
||||||
|
<HyperlinkButton Content="Leave feedback" Foreground="White" Margin="10,8,10,10" Name="FeedbackMenu" Click="Feedback_Click"/>
|
||||||
|
<HyperlinkButton Content="About us" Foreground="White" FontStyle="Normal" Margin="10,8,10,10" Name="AboutMenu" Click="About_Click"/>
|
||||||
|
<HyperlinkButton Content="Join beta program" Foreground="White" Margin="10,8,10,10" Name="BetaMenu" Click="Beta_Click"/>
|
||||||
|
<HyperlinkButton Content="Help us translate this app" Foreground="White" Margin="10,8,10,10" Name="TranslateMenu" Click="Translate_Click"/>
|
||||||
|
</StackPanel>
|
||||||
|
</Grid>
|
||||||
|
<Frame Grid.Row="1" Name="settingsContent"/>
|
||||||
|
</Grid>
|
||||||
|
</Page>
|
||||||
@@ -0,0 +1,66 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.IO;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Runtime.InteropServices.WindowsRuntime;
|
||||||
|
using Windows.Foundation;
|
||||||
|
using Windows.Foundation.Collections;
|
||||||
|
using Windows.UI.Xaml;
|
||||||
|
using Windows.UI.Xaml.Controls;
|
||||||
|
using Windows.UI.Xaml.Controls.Primitives;
|
||||||
|
using Windows.UI.Xaml.Data;
|
||||||
|
using Windows.UI.Xaml.Input;
|
||||||
|
using Windows.UI.Xaml.Media;
|
||||||
|
using Windows.UI.Xaml.Navigation;
|
||||||
|
|
||||||
|
// The Blank Page item template is documented at https://go.microsoft.com/fwlink/?LinkId=234238
|
||||||
|
|
||||||
|
namespace FoxTube
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// An empty page that can be used on its own or navigated to within a Frame.
|
||||||
|
/// </summary>
|
||||||
|
public sealed partial class Settings : Page
|
||||||
|
{
|
||||||
|
public Settings()
|
||||||
|
{
|
||||||
|
this.InitializeComponent();
|
||||||
|
settingsContent.Navigate(typeof(General));
|
||||||
|
}
|
||||||
|
|
||||||
|
private void General_Click(object sender, RoutedEventArgs e)
|
||||||
|
{
|
||||||
|
settingsContent.Navigate(typeof(General));
|
||||||
|
}
|
||||||
|
|
||||||
|
private void Personalization_Click(object sender, RoutedEventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void Account_Click(object sender, RoutedEventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void About_Click(object sender, RoutedEventArgs e)
|
||||||
|
{
|
||||||
|
settingsContent.Navigate(typeof(About));
|
||||||
|
}
|
||||||
|
|
||||||
|
private void Beta_Click(object sender, RoutedEventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void Translate_Click(object sender, RoutedEventArgs e)
|
||||||
|
{
|
||||||
|
settingsContent.Navigate(typeof(Translate));
|
||||||
|
}
|
||||||
|
|
||||||
|
private void Feedback_Click(object sender, RoutedEventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,29 @@
|
|||||||
|
<Page
|
||||||
|
x:Class="FoxTube.Translate"
|
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:local="using:FoxTube"
|
||||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
|
mc:Ignorable="d">
|
||||||
|
|
||||||
|
<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
|
||||||
|
<StackPanel Orientation="Vertical" Margin="10">
|
||||||
|
<TextBlock Text="Help us translate this app" FontSize="28"/>
|
||||||
|
<TextBlock Text="You can help us make this app even better by contributing to its development by translating this app. You can choose a brand new languageto translate or edit mistakes in existing translations." Margin="0,0,0,10"/>
|
||||||
|
<TextBlock Text="It's quite simple:" Margin="0,0,0,10"/>
|
||||||
|
<TextBlock Text="1. Choose language you want to translate"/>
|
||||||
|
<ComboBox Name="LangList" Margin="0,0,0,10"/>
|
||||||
|
<TextBlock Text="2. Import language pack file to your PC (.xml)"/>
|
||||||
|
<Button Content="Export"/>
|
||||||
|
<TextBlock Text="3. Open file with any text editor you want" Margin="0,0,0,10"/>
|
||||||
|
<TextBlock Text="4. Edit file by translating nececcary words and sentences"/>
|
||||||
|
<StackPanel BorderThickness="2" BorderBrush="OrangeRed" Width="350" HorizontalAlignment="Left" Margin="0,0,0,10">
|
||||||
|
<TextBlock FontFamily="Default, Segoe MDL2 Assets" Foreground="OrangeRed" FontWeight="SemiBold" Text=" Attention! Try not to break package structure!" Margin="5"/>
|
||||||
|
</StackPanel>
|
||||||
|
<TextBlock Text="5. Upload final package to our servers"/>
|
||||||
|
<Button Content="Choose file" Margin="0,0,0,10"/>
|
||||||
|
<TextBlock Text="It took about 2-3 weeks to process your pack and include it to the next update"/>
|
||||||
|
</StackPanel>
|
||||||
|
</Grid>
|
||||||
|
</Page>
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Globalization;
|
||||||
|
using System.IO;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Runtime.InteropServices.WindowsRuntime;
|
||||||
|
using Windows.Foundation;
|
||||||
|
using Windows.Foundation.Collections;
|
||||||
|
using Windows.UI.Xaml;
|
||||||
|
using Windows.UI.Xaml.Controls;
|
||||||
|
using Windows.UI.Xaml.Controls.Primitives;
|
||||||
|
using Windows.UI.Xaml.Data;
|
||||||
|
using Windows.UI.Xaml.Input;
|
||||||
|
using Windows.UI.Xaml.Media;
|
||||||
|
using Windows.UI.Xaml.Navigation;
|
||||||
|
|
||||||
|
// The Blank Page item template is documented at https://go.microsoft.com/fwlink/?LinkId=234238
|
||||||
|
|
||||||
|
namespace FoxTube
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// An empty page that can be used on its own or navigated to within a Frame.
|
||||||
|
/// </summary>
|
||||||
|
public sealed partial class Translate : Page
|
||||||
|
{
|
||||||
|
|
||||||
|
public Translate()
|
||||||
|
{
|
||||||
|
this.InitializeComponent();
|
||||||
|
foreach (CultureInfo culture in CultureInfo.GetCultures(CultureTypes.AllCultures))
|
||||||
|
LangList.Items.Add(culture);
|
||||||
|
LangList.SelectedIndex = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user