Updated pro promo dialog
This commit is contained in:
@@ -5,18 +5,63 @@
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
mc:Ignorable="d"
|
||||
Title="What's you get in PRO version"
|
||||
PrimaryButtonText="Purchase"
|
||||
CloseButtonText="Close"
|
||||
CloseButtonText="Maybe later"
|
||||
DefaultButton="Primary"
|
||||
PrimaryButtonClick="ContentDialog_PrimaryButtonClick">
|
||||
|
||||
<StackPanel>
|
||||
<TextBlock>
|
||||
- Several downloads at time
|
||||
<LineBreak/>- No ads
|
||||
<LineBreak/>- Custom theme accent color
|
||||
<LineBreak/>- Multiple accounts management
|
||||
</TextBlock>
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<Image Source="/Assets/Logo.png" Stretch="UniformToFill" Width="100"/>
|
||||
<StackPanel VerticalAlignment="Center" Margin="20,0">
|
||||
<TextBlock Text="FoxTube Pro" FontSize="26" FontWeight="SemiBold"/>
|
||||
<TextBlock Text="One-time payment"/>
|
||||
</StackPanel>
|
||||
<Button x:Name="getButton" Click="GetButton_Click" Content="Get for $5!" Background="{StaticResource SystemAccentColor}" Foreground="White"/>
|
||||
</StackPanel>
|
||||
|
||||
<TextBlock Text="What you will get with FoxTube Pro:" FontSize="20"/>
|
||||
|
||||
<Grid ColumnSpacing="10" RowSpacing="10" Margin="0, 10">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition />
|
||||
<RowDefinition />
|
||||
<RowDefinition />
|
||||
<RowDefinition />
|
||||
<RowDefinition />
|
||||
<RowDefinition />
|
||||
<RowDefinition />
|
||||
<RowDefinition />
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<FontIcon Grid.Row="0" Grid.Column="0" Glyph="" FontSize="30"/>
|
||||
<TextBlock Grid.Row="0" Grid.Column="1" Text="No ads" VerticalAlignment="Center"/>
|
||||
|
||||
<FontIcon Grid.Row="1" Grid.Column="0" Glyph="" FontSize="30"/>
|
||||
<TextBlock Grid.Row="1" Grid.Column="1" Text="Multiple accounts management" VerticalAlignment="Center"/>
|
||||
|
||||
<FontIcon Grid.Row="2" Grid.Column="0" Glyph="" FontSize="30"/>
|
||||
<TextBlock Grid.Row="2" Grid.Column="1" Text="Incognito mode" VerticalAlignment="Center"/>
|
||||
|
||||
<FontIcon Grid.Row="3" Grid.Column="0" Glyph="" FontSize="30"/>
|
||||
<TextBlock Grid.Row="3" Grid.Column="1" Text="Several downloads at time" VerticalAlignment="Center"/>
|
||||
|
||||
<FontIcon Grid.Row="4" Grid.Column="0" Glyph="HQ" FontFamily="Segoe UI" FontSize="30"/>
|
||||
<TextBlock Grid.Row="4" Grid.Column="1" Text="Download videos in higher qualities*" VerticalAlignment="Center"/>
|
||||
|
||||
<FontIcon Grid.Row="5" Grid.Column="0" Glyph="" FontSize="30"/>
|
||||
<TextBlock Grid.Row="5" Grid.Column="1" Text="Cortana voice commands*" VerticalAlignment="Center"/>
|
||||
|
||||
<FontIcon Grid.Row="6" Grid.Column="0" Glyph="" FontSize="30"/>
|
||||
<TextBlock Grid.Row="6" Grid.Column="1" Text="Custom application accent color*" VerticalAlignment="Center"/>
|
||||
|
||||
<FontIcon Grid.Row="7" Grid.Column="0" Glyph="" FontSize="30"/>
|
||||
<TextBlock Grid.Row="7" Grid.Column="1" Text="Watch videos with you friends with Rooms*" VerticalAlignment="Center"/>
|
||||
</Grid>
|
||||
<TextBlock Style="{StaticResource CaptionTextBlockStyle}" Foreground="Gray" Text="*These features will come in future releases"/>
|
||||
</StackPanel>
|
||||
</ContentDialog>
|
||||
@@ -1,15 +1,28 @@
|
||||
using FoxTube.Utils;
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
using Windows.UI.Xaml.Controls;
|
||||
|
||||
namespace FoxTube.Controls.Dialogs
|
||||
{
|
||||
public sealed partial class ProOfferDialog : ContentDialog
|
||||
{
|
||||
public ProOfferDialog() =>
|
||||
public ProOfferDialog()
|
||||
{
|
||||
InitializeComponent();
|
||||
getButton.Content = $"Get for {StoreInterop.Price}!";
|
||||
}
|
||||
|
||||
private async void ContentDialog_PrimaryButtonClick(ContentDialog sender, ContentDialogButtonClickEventArgs args)
|
||||
private async void ContentDialog_PrimaryButtonClick(ContentDialog sender, ContentDialogButtonClickEventArgs args) =>
|
||||
await Purchase();
|
||||
|
||||
private async void GetButton_Click(object sender, Windows.UI.Xaml.RoutedEventArgs e)
|
||||
{
|
||||
await Purchase();
|
||||
Hide();
|
||||
}
|
||||
|
||||
private async Task Purchase()
|
||||
{
|
||||
if (!await StoreInterop.PurchaseApp())
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user