|
| 1 | +<Page |
| 2 | + x:Class="YtFlowApp.AboutPage" |
| 3 | + xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
| 4 | + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| 5 | + xmlns:local="using:YtFlowApp" |
| 6 | + xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
| 7 | + xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
| 8 | + mc:Ignorable="d" |
| 9 | + NavigationCacheMode="Enabled" |
| 10 | + Loaded="Page_Loaded"> |
| 11 | + <Page.Resources> |
| 12 | + <Style TargetType="Grid" x:Key="AboutItemContainerStyle"> |
| 13 | + <Setter Property="Padding" Value="18" /> |
| 14 | + <Setter Property="Background" Value="{ThemeResource LayerFillColorDefaultBrush}" /> |
| 15 | + <Setter Property="CornerRadius" Value="{StaticResource AppControlCornerRadius}" /> |
| 16 | + <Setter Property="BorderThickness" Value="1" /> |
| 17 | + <Setter Property="BorderBrush" Value="{ThemeResource CardStrokeColorDefaultBrush}" /> |
| 18 | + <Setter Property="Margin" Value="0, 0, 0, 4" /> |
| 19 | + </Style> |
| 20 | + <Style TargetType="TextBlock" x:Key="AboutItemValueStyle"> |
| 21 | + <Setter Property="Foreground" Value="{ThemeResource SystemControlPageTextBaseMediumBrush}" /> |
| 22 | + </Style> |
| 23 | + </Page.Resources> |
| 24 | + |
| 25 | + <ScrollViewer x:Name="MainScrollViewer" Margin="16, 0, 16, 0"> |
| 26 | + <Grid> |
| 27 | + <Grid.RowDefinitions> |
| 28 | + <RowDefinition Height="Auto" /> |
| 29 | + <RowDefinition Height="Auto" /> |
| 30 | + <RowDefinition Height="Auto" /> |
| 31 | + </Grid.RowDefinitions> |
| 32 | + <Grid.ColumnDefinitions> |
| 33 | + <ColumnDefinition /> |
| 34 | + <ColumnDefinition x:Name="SideColumn" Width="0" /> |
| 35 | + </Grid.ColumnDefinitions> |
| 36 | + <ContentControl |
| 37 | + x:Name="HeaderControl" |
| 38 | + Grid.Row="0" |
| 39 | + Grid.ColumnSpan="2" |
| 40 | + Margin="0, 0, 0, 16" |
| 41 | + Style="{ThemeResource NavigationViewTitleHeaderContentControlTextStyle}" |
| 42 | + Height="48" |
| 43 | + > |
| 44 | + About |
| 45 | + </ContentControl> |
| 46 | + |
| 47 | + <StackPanel x:Name="SidePanel" Grid.Row="2"> |
| 48 | + <Image |
| 49 | + Source="ms-appx:///Assets/Square150x150Logo.png" |
| 50 | + HorizontalAlignment="Center" |
| 51 | + Width="150" |
| 52 | + /> |
| 53 | + <TextBlock |
| 54 | + Text="© YtFlow contributors" |
| 55 | + Foreground="{ThemeResource SystemControlPageTextBaseMediumBrush}" |
| 56 | + HorizontalAlignment="Center" |
| 57 | + /> |
| 58 | + <TextBlock |
| 59 | + Text="Logo by annoymous-hentai" |
| 60 | + Foreground="{ThemeResource SystemControlPageTextBaseMediumBrush}" |
| 61 | + HorizontalAlignment="Center" |
| 62 | + /> |
| 63 | + </StackPanel> |
| 64 | + <StackPanel x:Name="MainPanel" Grid.Row="1"> |
| 65 | + <Grid Style="{StaticResource AboutItemContainerStyle}"> |
| 66 | + <Grid.RowDefinitions> |
| 67 | + <RowDefinition /> |
| 68 | + <RowDefinition /> |
| 69 | + </Grid.RowDefinitions> |
| 70 | + <Grid.ColumnDefinitions> |
| 71 | + <ColumnDefinition Width="*" /> |
| 72 | + <ColumnDefinition Width="Auto" /> |
| 73 | + </Grid.ColumnDefinitions> |
| 74 | + <TextBlock Grid.Column="0" Grid.Row="0" Text="YtFlow" /> |
| 75 | + <TextBlock x:Name="PackageVersionText" Grid.Column="0" Grid.Row="1" Style="{StaticResource AboutItemValueStyle}" /> |
| 76 | + <HyperlinkButton |
| 77 | + Grid.Column="1" |
| 78 | + Grid.RowSpan="2" |
| 79 | + NavigateUri="https://github.com/YtFlow/YtFlowApp/tree/next" |
| 80 | + Content="View on GitHub" |
| 81 | + /> |
| 82 | + </Grid> |
| 83 | + <Grid Style="{StaticResource AboutItemContainerStyle}"> |
| 84 | + <Grid.RowDefinitions> |
| 85 | + <RowDefinition /> |
| 86 | + <RowDefinition /> |
| 87 | + </Grid.RowDefinitions> |
| 88 | + <Grid.ColumnDefinitions> |
| 89 | + <ColumnDefinition Width="*" /> |
| 90 | + <ColumnDefinition Width="Auto" /> |
| 91 | + </Grid.ColumnDefinitions> |
| 92 | + <TextBlock Grid.Column="0" Grid.Row="0" Text="YtFlowCore" /> |
| 93 | + <TextBlock x:Name="CoreVersionText" Grid.Column="0" Grid.Row="1" Style="{StaticResource AboutItemValueStyle}" /> |
| 94 | + <HyperlinkButton |
| 95 | + Grid.Column="1" |
| 96 | + Grid.RowSpan="2" |
| 97 | + NavigateUri="https://github.com/YtFlow/YtFlowCore" |
| 98 | + Content="View on GitHub" |
| 99 | + /> |
| 100 | + </Grid> |
| 101 | + <Button Content="Third-Party Licenses..." Margin="0, 16, 0, 0" Click="LicenseButton_Click" /> |
| 102 | + </StackPanel> |
| 103 | + </Grid> |
| 104 | + <VisualStateManager.VisualStateGroups> |
| 105 | + <VisualStateGroup> |
| 106 | + <VisualState> |
| 107 | + <VisualState.StateTriggers> |
| 108 | + <AdaptiveTrigger MinWindowWidth="{StaticResource MediumAdaptiveWidth}" /> |
| 109 | + </VisualState.StateTriggers> |
| 110 | + <VisualState.Setters> |
| 111 | + <Setter Target="HeaderControl.Margin" Value="12, 44, 0, 0" /> |
| 112 | + <Setter Target="HeaderControl.Height" Value="80" /> |
| 113 | + <Setter Target="SideColumn.Width" Value="200" /> |
| 114 | + <Setter Target="SidePanel.(Grid.Column)" Value="1" /> |
| 115 | + <Setter Target="SidePanel.(Grid.ColumnSpan)" Value="1" /> |
| 116 | + <Setter Target="SidePanel.(Grid.Row)" Value="1" /> |
| 117 | + <Setter Target="MainPanel.(Grid.Column)" Value="0" /> |
| 118 | + <Setter Target="MainPanel.(Grid.ColumnSpan)" Value="1" /> |
| 119 | + <Setter Target="MainPanel.(Grid.Row)" Value="1" /> |
| 120 | + <Setter Target="MainPanel.Margin" Value="0, 0, 16, 0" /> |
| 121 | + <Setter Target="MainScrollViewer.Margin" Value="40, 0, 40, 0" /> |
| 122 | + </VisualState.Setters> |
| 123 | + </VisualState> |
| 124 | + </VisualStateGroup> |
| 125 | + </VisualStateManager.VisualStateGroups> |
| 126 | + </ScrollViewer> |
| 127 | +</Page> |
| 128 | + |
0 commit comments