|
| 1 | +<UserControl |
| 2 | + x:Class="InternetTest.Views.SettingsPage" |
| 3 | + xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
| 4 | + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| 5 | + xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
| 6 | + xmlns:lang="clr-namespace:InternetTest.Properties" |
| 7 | + xmlns:local="clr-namespace:InternetTest.Views" |
| 8 | + xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
| 9 | + d:DesignHeight="450" |
| 10 | + d:DesignWidth="800" |
| 11 | + FontFamily="..\Fonts\#Hauora" |
| 12 | + Foreground="{DynamicResource Foreground1}" |
| 13 | + mc:Ignorable="d"> |
| 14 | + <Grid> |
| 15 | + <Grid.RowDefinitions> |
| 16 | + <RowDefinition Height="Auto" /> |
| 17 | + <RowDefinition /> |
| 18 | + </Grid.RowDefinitions> |
| 19 | + <Grid.ColumnDefinitions> |
| 20 | + <ColumnDefinition /> |
| 21 | + <ColumnDefinition /> |
| 22 | + <ColumnDefinition /> |
| 23 | + <ColumnDefinition /> |
| 24 | + <ColumnDefinition /> |
| 25 | + <ColumnDefinition /> |
| 26 | + </Grid.ColumnDefinitions> |
| 27 | + <StackPanel Grid.ColumnSpan="6"> |
| 28 | + <TextBlock |
| 29 | + Margin="10 5" |
| 30 | + FontSize="24" |
| 31 | + FontWeight="Bold" |
| 32 | + Text="{x:Static lang:Resources.Settings}" /> |
| 33 | + <TextBlock |
| 34 | + Margin="10 0" |
| 35 | + FontSize="14" |
| 36 | + Text="{x:Static lang:Resources.SettingsDesc}" |
| 37 | + TextWrapping="Wrap" /> |
| 38 | + </StackPanel> |
| 39 | + <StackPanel |
| 40 | + Grid.Row="1" |
| 41 | + Grid.Column="1" |
| 42 | + Grid.ColumnSpan="4"> |
| 43 | + <Border |
| 44 | + Margin="5" |
| 45 | + Padding="10" |
| 46 | + Background="{DynamicResource CardBackground}" |
| 47 | + BorderBrush="{DynamicResource Border}" |
| 48 | + BorderThickness="1" |
| 49 | + CornerRadius="10"> |
| 50 | + <Grid> |
| 51 | + <Grid.RowDefinitions> |
| 52 | + <RowDefinition Height="Auto" /> |
| 53 | + <RowDefinition Height="Auto" /> |
| 54 | + <RowDefinition /> |
| 55 | + </Grid.RowDefinitions> |
| 56 | + <StackPanel Orientation="Horizontal"> |
| 57 | + <TextBlock |
| 58 | + VerticalAlignment="Center" |
| 59 | + FontFamily="..\Fonts\#FluentSystemIcons-Regular" |
| 60 | + FontSize="16" |
| 61 | + Text="" /> |
| 62 | + <TextBlock |
| 63 | + Margin="5 0" |
| 64 | + VerticalAlignment="Center" |
| 65 | + FontSize="16" |
| 66 | + FontWeight="Bold" |
| 67 | + Text="{x:Static lang:Resources.General}" /> |
| 68 | + </StackPanel> |
| 69 | + <TextBlock |
| 70 | + Grid.Row="1" |
| 71 | + Foreground="{DynamicResource DarkGray}" |
| 72 | + Text="{x:Static lang:Resources.GeneralDesc}" /> |
| 73 | + <StackPanel Grid.Row="2"> |
| 74 | + <TextBlock |
| 75 | + Margin="0 5" |
| 76 | + FontWeight="SemiBold" |
| 77 | + Text="{x:Static lang:Resources.Theme}" /> |
| 78 | + <StackPanel Orientation="Horizontal"> |
| 79 | + <RadioButton |
| 80 | + BorderThickness="2" |
| 81 | + GroupName="Theme" |
| 82 | + Style="{DynamicResource ThemeButton}"> |
| 83 | + <Grid> |
| 84 | + <Grid.ColumnDefinitions> |
| 85 | + <ColumnDefinition Width="Auto" /> |
| 86 | + <ColumnDefinition /> |
| 87 | + </Grid.ColumnDefinitions> |
| 88 | + <Rectangle |
| 89 | + Width="50" |
| 90 | + Height="50" |
| 91 | + RadiusX="4" |
| 92 | + RadiusY="4"> |
| 93 | + <Rectangle.Fill> |
| 94 | + <ImageBrush ImageSource="../Assets/LightTheme.png" /> |
| 95 | + </Rectangle.Fill> |
| 96 | + </Rectangle> |
| 97 | + <TextBlock |
| 98 | + Grid.Column="1" |
| 99 | + Margin="5" |
| 100 | + VerticalAlignment="Center" |
| 101 | + FontWeight="SemiBold" |
| 102 | + Text="{x:Static lang:Resources.Light}" /> |
| 103 | + |
| 104 | + </Grid> |
| 105 | + </RadioButton> |
| 106 | + <RadioButton |
| 107 | + Margin="10 0" |
| 108 | + BorderThickness="2" |
| 109 | + GroupName="Theme" |
| 110 | + Style="{DynamicResource ThemeButton}"> |
| 111 | + <Grid> |
| 112 | + <Grid.ColumnDefinitions> |
| 113 | + <ColumnDefinition Width="Auto" /> |
| 114 | + <ColumnDefinition /> |
| 115 | + </Grid.ColumnDefinitions> |
| 116 | + <Rectangle |
| 117 | + Width="50" |
| 118 | + Height="50" |
| 119 | + RadiusX="4" |
| 120 | + RadiusY="4"> |
| 121 | + <Rectangle.Fill> |
| 122 | + <ImageBrush ImageSource="../Assets/DarkTheme.png" /> |
| 123 | + </Rectangle.Fill> |
| 124 | + </Rectangle> |
| 125 | + <TextBlock |
| 126 | + Grid.Column="1" |
| 127 | + Margin="5" |
| 128 | + VerticalAlignment="Center" |
| 129 | + FontWeight="SemiBold" |
| 130 | + Text="{x:Static lang:Resources.Dark}" /> |
| 131 | + |
| 132 | + </Grid> |
| 133 | + </RadioButton> |
| 134 | + <RadioButton |
| 135 | + BorderThickness="2" |
| 136 | + GroupName="Theme" |
| 137 | + Style="{DynamicResource ThemeButton}"> |
| 138 | + <Grid> |
| 139 | + <Grid.ColumnDefinitions> |
| 140 | + <ColumnDefinition Width="Auto" /> |
| 141 | + <ColumnDefinition /> |
| 142 | + </Grid.ColumnDefinitions> |
| 143 | + <Rectangle |
| 144 | + Width="50" |
| 145 | + Height="50" |
| 146 | + RadiusX="4" |
| 147 | + RadiusY="4"> |
| 148 | + <Rectangle.Fill> |
| 149 | + <ImageBrush ImageSource="../Assets/SystemTheme.png" /> |
| 150 | + </Rectangle.Fill> |
| 151 | + </Rectangle> |
| 152 | + <TextBlock |
| 153 | + Grid.Column="1" |
| 154 | + Margin="5" |
| 155 | + VerticalAlignment="Center" |
| 156 | + FontWeight="SemiBold" |
| 157 | + Text="{x:Static lang:Resources.DefaultTheme}" /> |
| 158 | + |
| 159 | + </Grid> |
| 160 | + </RadioButton> |
| 161 | + </StackPanel> |
| 162 | + <TextBlock |
| 163 | + Margin="0 5" |
| 164 | + FontWeight="SemiBold" |
| 165 | + Text="{x:Static lang:Resources.StartupPage}" /> |
| 166 | + <ComboBox |
| 167 | + Width="200" |
| 168 | + HorizontalAlignment="Left" |
| 169 | + > |
| 170 | + <ComboBoxItem Content="{x:Static lang:Resources.Home}" /> |
| 171 | + <ComboBoxItem Content="{x:Static lang:Resources.DownDetector}" /> |
| 172 | + <ComboBoxItem Content="{x:Static lang:Resources.DNSTool}" /> |
| 173 | + <ComboBoxItem Content="{x:Static lang:Resources.WiFiNetworks}" /> |
| 174 | + <ComboBoxItem Content="{x:Static lang:Resources.LocateIP}" /> |
| 175 | + <ComboBoxItem Content="{x:Static lang:Resources.IPConfig}" /> |
| 176 | + <ComboBoxItem Content="{x:Static lang:Resources.Ping}" /> |
| 177 | + <ComboBoxItem Content="{x:Static lang:Resources.Requests}" /> |
| 178 | + <ComboBoxItem Content="{x:Static lang:Resources.TraceRoute}" /> |
| 179 | + </ComboBox> |
| 180 | + <TextBlock |
| 181 | + Margin="0 5" |
| 182 | + FontWeight="SemiBold" |
| 183 | + Text="{x:Static lang:Resources.Language}" /> |
| 184 | + <ComboBox Width="200" HorizontalAlignment="Left"> |
| 185 | + <ComboBoxItem Content="{x:Static lang:Resources.DefaultLanguage}" /> |
| 186 | + <ComboBoxItem Content="English (United States)" /> |
| 187 | + <ComboBoxItem Content="Français (France)" /> |
| 188 | + <ComboBoxItem Content="中文(简体)" /> |
| 189 | + <ComboBoxItem Content="Italiano (Italia)" /> |
| 190 | + </ComboBox> |
| 191 | + </StackPanel> |
| 192 | + </Grid> |
| 193 | + </Border> |
| 194 | + </StackPanel> |
| 195 | + </Grid> |
| 196 | +</UserControl> |
0 commit comments