mirror of
https://github.com/proxysu/ProxySU.git
synced 2025-04-03 05:43:36 +03:00
105 lines
6.4 KiB
XML
105 lines
6.4 KiB
XML
<Window x:Class="ProxySU.TrojanTemplateWindow"
|
||
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:ProxySU"
|
||
mc:Ignorable="d"
|
||
Title="TrojanTemplateWindow" Height="400" Width="600">
|
||
<Window.Resources>
|
||
<Style BasedOn="{StaticResource {x:Type TextBox}}"
|
||
TargetType="TextBox"
|
||
x:Key="TitleText">
|
||
<Style.Triggers>
|
||
<MultiTrigger>
|
||
<MultiTrigger.Conditions>
|
||
<Condition Property="Text" Value=""/>
|
||
<Condition Property="TextBox.IsFocused" Value="false"/>
|
||
</MultiTrigger.Conditions>
|
||
<Setter Property="Template">
|
||
<Setter.Value>
|
||
<ControlTemplate>
|
||
<Border BorderThickness="1" BorderBrush="Gray" Margin="0">
|
||
<TextBlock x:Name="MainTextBlock" Text="{TemplateBinding TextBox.Tag}" Width="{TemplateBinding TextBox.ActualWidth}" Foreground="Gray" VerticalAlignment="Center" HorizontalAlignment="Left"/>
|
||
</Border>
|
||
</ControlTemplate>
|
||
</Setter.Value>
|
||
</Setter>
|
||
</MultiTrigger>
|
||
</Style.Triggers>
|
||
</Style>
|
||
</Window.Resources>
|
||
<Grid>
|
||
<Grid>
|
||
<Grid.ColumnDefinitions>
|
||
<ColumnDefinition></ColumnDefinition>
|
||
</Grid.ColumnDefinitions>
|
||
<Grid.RowDefinitions>
|
||
<RowDefinition Height="0.7*"></RowDefinition>
|
||
<RowDefinition></RowDefinition>
|
||
|
||
</Grid.RowDefinitions>
|
||
<GroupBox Header="模板库" Grid.Row="0">
|
||
<Grid>
|
||
<Grid.ColumnDefinitions>
|
||
<ColumnDefinition Width="0.6*"></ColumnDefinition>
|
||
<ColumnDefinition></ColumnDefinition>
|
||
<ColumnDefinition Width="0.5*"></ColumnDefinition>
|
||
</Grid.ColumnDefinitions>
|
||
<Grid.RowDefinitions>
|
||
<RowDefinition></RowDefinition>
|
||
<RowDefinition></RowDefinition>
|
||
<RowDefinition></RowDefinition>
|
||
</Grid.RowDefinitions>
|
||
<RadioButton x:Name="RadioButtonTrojanTLS2Web" Content="Trojan+TLS+Web" Grid.Column="0" Grid.Row="1" Checked="RadioButtonTrojanTLS2Web_Checked"></RadioButton>
|
||
<TextBlock Text="说明" Grid.Column="1" Grid.Row="1"></TextBlock>
|
||
</Grid>
|
||
</GroupBox>
|
||
<GroupBox Header="其他设置" Grid.Row="1">
|
||
<Grid>
|
||
<Grid.ColumnDefinitions>
|
||
<ColumnDefinition Width="0.3*"></ColumnDefinition>
|
||
<ColumnDefinition></ColumnDefinition>
|
||
<ColumnDefinition Width="0.4*"></ColumnDefinition>
|
||
<ColumnDefinition Width="0.4*"></ColumnDefinition>
|
||
</Grid.ColumnDefinitions>
|
||
<Grid.RowDefinitions>
|
||
<RowDefinition></RowDefinition>
|
||
<RowDefinition></RowDefinition>
|
||
<RowDefinition></RowDefinition>
|
||
<RowDefinition></RowDefinition>
|
||
<RowDefinition></RowDefinition>
|
||
<RowDefinition></RowDefinition>
|
||
</Grid.RowDefinitions>
|
||
<TextBlock x:Name="TextBlockDomain" Text="域名:" Grid.Column="0" Grid.Row="0" ></TextBlock>
|
||
<TextBox x:Name="TextBoxDomain" Style="{StaticResource TitleText}" Tag="不可为空" Grid.Column="1" Grid.Row="0" Margin="3"></TextBox>
|
||
<TextBlock Text="端口:443" Grid.Column="2" Grid.Row="0" Margin="5"></TextBlock>
|
||
<!--<Button x:Name="ButtonDomain" Content="检测" Visibility="Collapsed" Grid.Column="2" Grid.Row="0" Margin="2" Click="ButtonDomain_Click"></Button>-->
|
||
<!--<TextBlock x:Name="TextBlockServerListenPort" Text="服务端口:" Grid.Column="0" Grid.Row="1"></TextBlock>
|
||
<TextBox x:Name="TextBoxServerListenPort" Grid.Column="1" Grid.Row="1" Margin="3"></TextBox>
|
||
<Button x:Name="ButtonServerListenPort" Content="随机选择" Grid.Column="2" Grid.Row="1" Margin="2" Click="ButtonServerListenPort_Click"></Button>-->
|
||
|
||
<TextBlock x:Name="TextBlockNewUUID" Text="密码:" Grid.Column="0" Grid.Row="1" ></TextBlock>
|
||
<TextBox x:Name="TextBoxNewUUID" Grid.Column="1" Grid.Row="1" Margin="3"></TextBox>
|
||
<Button x:Name="ButtonNewUUID" Content="更新" Grid.Column="2" Grid.Row="1" Margin="3" Click="ButtonNewUUID_Click"></Button>
|
||
<TextBlock Text="使用已有密码,直接粘贴到框中" TextWrapping="Wrap" Grid.Column="3" Grid.Row="1"></TextBlock>
|
||
<TextBlock x:Name="TextBlockMaskSites" Text="伪装网站:" Grid.Column="0" Grid.Row="3" Grid.ColumnSpan="2"></TextBlock>
|
||
<TextBox x:Name="TextBoxMaskSites" Style="{StaticResource TitleText}" Tag="设置此项可增加代理的隐蔽(可为空)" Grid.Column="1" Grid.Row="3" Margin="3"></TextBox>
|
||
<Grid Grid.Column="0" Grid.Row="5" Grid.ColumnSpan="4">
|
||
<Grid.ColumnDefinitions>
|
||
<ColumnDefinition></ColumnDefinition>
|
||
<ColumnDefinition></ColumnDefinition>
|
||
<ColumnDefinition></ColumnDefinition>
|
||
<ColumnDefinition></ColumnDefinition>
|
||
<ColumnDefinition></ColumnDefinition>
|
||
</Grid.ColumnDefinitions>
|
||
<Button x:Name="ButtondDecide" Content="确定" Grid.Column="1" Grid.Row="6" Margin="3" Click="ButtondDecide_Click"></Button>
|
||
<Button x:Name="ButtondCancel" Content="取消" Grid.Column="3" Grid.Row="6" Margin="3" Click="ButtondCancel_Click"></Button>
|
||
|
||
</Grid>
|
||
</Grid>
|
||
</GroupBox>
|
||
</Grid>
|
||
|
||
</Grid>
|
||
</Window>
|