2021-05-16 11:29:37 +03:00
|
|
|
<views:MvxWindow x:Class="ProxySuper.WPF.Views.TrojanGoEditorView"
|
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
|
xmlns:local="clr-namespace:ProxySuper.WPF.Views"
|
2021-08-23 07:00:39 +03:00
|
|
|
xmlns:views="clr-namespace:MvvmCross.Platforms.Wpf.Views;assembly=MvvmCross.Platforms.Wpf"
|
2021-05-16 11:29:37 +03:00
|
|
|
xmlns:ctrl="clr-namespace:ProxySuper.WPF.Controls"
|
|
|
|
mc:Ignorable="d"
|
|
|
|
BorderThickness="0,1,0,0"
|
|
|
|
BorderBrush="#eee"
|
2021-05-22 06:48:44 +03:00
|
|
|
Icon="/Resources/ProxySU.ico"
|
2021-05-16 11:29:37 +03:00
|
|
|
WindowStartupLocation="CenterScreen"
|
2021-08-23 07:00:39 +03:00
|
|
|
Title="Trojan-Go编辑配置" Height="600" Width="1000">
|
2021-05-16 11:29:37 +03:00
|
|
|
<Grid>
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="310" />
|
|
|
|
<ColumnDefinition Width="1" />
|
|
|
|
<ColumnDefinition Width="*" />
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
|
|
|
<StackPanel Grid.Column="0" Margin="10">
|
|
|
|
<ctrl:HostControl />
|
|
|
|
</StackPanel>
|
|
|
|
<StackPanel Grid.Column="1" Background="#EEE"></StackPanel>
|
2022-11-21 18:39:25 +03:00
|
|
|
|
|
|
|
<Grid Margin="10,10,0,0" Grid.Column="2">
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="36" />
|
|
|
|
<RowDefinition Height="36" />
|
|
|
|
<RowDefinition Height="36" />
|
|
|
|
<RowDefinition Height="36" />
|
|
|
|
<RowDefinition Height="36" />
|
|
|
|
<RowDefinition Height="36" />
|
|
|
|
<RowDefinition Height="*" />
|
|
|
|
<RowDefinition Height="50" />
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="120" />
|
|
|
|
<ColumnDefinition Width="200" />
|
|
|
|
<ColumnDefinition Width="*" />
|
|
|
|
</Grid.ColumnDefinitions>
|
2021-05-16 11:29:37 +03:00
|
|
|
|
2022-11-21 18:39:25 +03:00
|
|
|
<Label Content="{DynamicResource TrojanGoDomain}" Grid.Row="0" Grid.Column="0" />
|
|
|
|
<TextBox Text="{Binding Settings.Domain}" Grid.Row="0" Grid.Column="1" />
|
2021-05-16 11:29:37 +03:00
|
|
|
|
2022-11-21 18:39:25 +03:00
|
|
|
<Label Content="{DynamicResource TrojanGoPort}" Grid.Row="1" Grid.Column="0" />
|
|
|
|
<TextBox Text="{Binding Settings.Port}" Grid.Row="1" Grid.Column="1" />
|
2021-05-16 11:29:37 +03:00
|
|
|
|
2022-11-21 18:39:25 +03:00
|
|
|
<Label Content="{DynamicResource TrojanGoPassword}" Grid.Row="2" Grid.Column="0" />
|
|
|
|
<TextBox Text="{Binding Settings.Password}" Grid.Row="2" Grid.Column="1" />
|
2021-05-20 13:32:17 +03:00
|
|
|
|
2022-11-21 18:39:25 +03:00
|
|
|
<Label Content="{DynamicResource TrojanGoMaskDomain}" Grid.Row="3" Grid.Column="0" />
|
|
|
|
<TextBox Text="{Binding Settings.MaskDomain}" Grid.Row="3" Grid.Column="1" />
|
2021-05-16 11:29:37 +03:00
|
|
|
|
2022-11-21 18:39:25 +03:00
|
|
|
<Label Content="{DynamicResource TrojanGoWebSocketPath}" Grid.Row="4" Grid.Column="0" />
|
|
|
|
<TextBox Text="{Binding Settings.WebSocketPath}" Grid.Row="4" Grid.Column="1" />
|
2021-05-20 13:32:17 +03:00
|
|
|
|
2021-08-19 12:54:23 +03:00
|
|
|
|
2022-11-21 18:39:25 +03:00
|
|
|
<Label Content="{DynamicResource XrayWithTLS}" Width="120" Grid.Row="5" Grid.Column="0" />
|
|
|
|
<CheckBox IsChecked="{Binding Path=Settings.WithTLS}"
|
|
|
|
Grid.Row="5"
|
|
|
|
Grid.Column="1"
|
|
|
|
Content="{DynamicResource XrayWithTLSDesc}"
|
|
|
|
VerticalContentAlignment="Center"
|
|
|
|
VerticalAlignment="Center" />
|
2021-08-19 12:54:23 +03:00
|
|
|
|
2022-11-21 18:39:25 +03:00
|
|
|
<Border Grid.Row="7"
|
|
|
|
Grid.ColumnSpan="3"
|
2021-08-19 12:54:23 +03:00
|
|
|
BorderBrush="#eee"
|
|
|
|
BorderThickness="0,1,0,0">
|
|
|
|
<StackPanel Orientation="Horizontal"
|
2022-11-21 18:39:25 +03:00
|
|
|
Height="50"
|
2021-08-19 12:54:23 +03:00
|
|
|
HorizontalAlignment="Right">
|
|
|
|
<Button Content="{DynamicResource Save}"
|
|
|
|
Command="{Binding SaveCommand}"
|
|
|
|
HorizontalAlignment="Right"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
Padding="10,5" />
|
|
|
|
|
|
|
|
<Button Content="{DynamicResource SaveAndInstall}"
|
|
|
|
Command="{Binding SaveAndInstallCommand}"
|
|
|
|
HorizontalAlignment="Right"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
Padding="10,5"
|
|
|
|
Margin="20,0,40,0" />
|
|
|
|
</StackPanel>
|
2021-05-16 11:29:37 +03:00
|
|
|
</Border>
|
2022-11-21 18:39:25 +03:00
|
|
|
</Grid>
|
2021-05-16 11:29:37 +03:00
|
|
|
</Grid>
|
|
|
|
</views:MvxWindow>
|