1
0
mirror of https://github.com/proxysu/ProxySU.git synced 2024-11-25 06:36:08 +03:00
This commit is contained in:
next-autumn 2021-05-15 11:58:05 +08:00
parent 8d531a2930
commit 405d8377da
6 changed files with 67 additions and 17 deletions

View File

@ -10,7 +10,7 @@
<ResourceDictionary.MergedDictionaries> <ResourceDictionary.MergedDictionaries>
<!--Languages--> <!--Languages-->
<ResourceDictionary Source="/Resources/Languages/zh_cn.xaml" /> <ResourceDictionary Source="/Resources/Languages/zh_cn.xaml" />
<!--components styles--> <!--components styles-->
<ResourceDictionary Source="/Resources/Styles/DataGridStyle.xaml" /> <ResourceDictionary Source="/Resources/Styles/DataGridStyle.xaml" />
@ -21,7 +21,8 @@
<Style TargetType="{x:Type Label}"> <Style TargetType="{x:Type Label}">
<Setter Property="VerticalAlignment" Value="Center" /> <Setter Property="VerticalAlignment" Value="Center" />
</Style> </Style>
</ResourceDictionary> </ResourceDictionary>
</ResourceDictionary.MergedDictionaries> </ResourceDictionary.MergedDictionaries>
</ResourceDictionary> </ResourceDictionary>

View File

@ -8,24 +8,53 @@
<Grid> <Grid>
<GroupBox Padding="10" Header="Host"> <GroupBox Padding="10" Header="Host">
<Grid> <Grid>
<Grid.Resources >
<Style TargetType="Border" >
<Setter Property="Padding" Value="5,5,5,5" />
</Style>
</Grid.Resources>
<Grid.RowDefinitions> <Grid.RowDefinitions>
<RowDefinition /> <RowDefinition Height="36" />
<RowDefinition /> <RowDefinition Height="36" />
<RowDefinition /> <RowDefinition Height="36" />
<RowDefinition /> <RowDefinition Height="36" />
<RowDefinition /> <RowDefinition Height="36" />
</Grid.RowDefinitions> </Grid.RowDefinitions>
<Grid.ColumnDefinitions> <Grid.ColumnDefinitions>
<ColumnDefinition Width="60" /> <ColumnDefinition Width="80" />
<ColumnDefinition Width="auto" /> <ColumnDefinition Width="auto" />
</Grid.ColumnDefinitions> </Grid.ColumnDefinitions>
<Label Content="地址:" Grid.Row="0" Grid.Column="0" />
<Label Content="{DynamicResource HostTag}" Grid.Row="0" Grid.Column="0" />
<TextBox Grid.Row="0" Grid.Column="1" <TextBox Grid.Row="0" Grid.Column="1"
Width="200" Width="180"
Height="28"
Text="{Binding Host.Tag}"
VerticalContentAlignment="Center" />
<Label Content="{DynamicResource HostAddress}" Grid.Row="1" Grid.Column="0" />
<TextBox Grid.Row="1" Grid.Column="1"
Width="180"
Height="28"
Text="{Binding Host.Address}" Text="{Binding Host.Address}"
VerticalContentAlignment="Center" /> VerticalContentAlignment="Center" />
<Label Content="{DynamicResource HostUserName}" Grid.Row="2" Grid.Column="0" />
<TextBox Grid.Row="2" Grid.Column="1"
Width="180"
Height="28"
Text="{Binding Host.UserName}"
VerticalContentAlignment="Center" />
<Label Content="{DynamicResource HostPassword}" Grid.Row="3" Grid.Column="0" />
<TextBox Grid.Row="3" Grid.Column="1"
Width="180"
Height="28"
Text="{Binding Host.Password}"
VerticalContentAlignment="Center" />
</Grid> </Grid>
</GroupBox> </GroupBox>
</Grid> </Grid>

View File

@ -7,6 +7,7 @@
xmlns:local="clr-namespace:ProxySuper.WPF" xmlns:local="clr-namespace:ProxySuper.WPF"
mc:Ignorable="d" mc:Ignorable="d"
WindowStartupLocation="CenterScreen" WindowStartupLocation="CenterScreen"
Icon="/Resources/ProxySU.ico"
Title="ProxySU" Height="600" Width="1000"> Title="ProxySU" Height="600" Width="1000">
<Grid> <Grid>

View File

@ -23,7 +23,13 @@
<sys:String x:Key="MainDataGridColumnActionInstall">Install</sys:String> <sys:String x:Key="MainDataGridColumnActionInstall">Install</sys:String>
<sys:String x:Key="MainDataGridColumnActionEdit">Edit</sys:String> <sys:String x:Key="MainDataGridColumnActionEdit">Edit</sys:String>
<sys:String x:Key="MainDataGridColumnActionDelete">Delete</sys:String> <sys:String x:Key="MainDataGridColumnActionDelete">Delete</sys:String>
<!--Editor Window--> <!--Editor Window-->
<sys:String x:Key="HostTag">Tag</sys:String>
<sys:String x:Key="HostAddress">Address</sys:String>
<sys:String x:Key="HostUserName">UserName</sys:String>
<sys:String x:Key="HostPassword">Password</sys:String>
<sys:String x:Key="HostPort">Port</sys:String>
</ResourceDictionary> </ResourceDictionary>

View File

@ -23,4 +23,13 @@
<sys:String x:Key="MainDataGridColumnActionInstall">安装</sys:String> <sys:String x:Key="MainDataGridColumnActionInstall">安装</sys:String>
<sys:String x:Key="MainDataGridColumnActionEdit">编辑</sys:String> <sys:String x:Key="MainDataGridColumnActionEdit">编辑</sys:String>
<sys:String x:Key="MainDataGridColumnActionDelete">删除</sys:String> <sys:String x:Key="MainDataGridColumnActionDelete">删除</sys:String>
<!--Editor Window-->
<sys:String x:Key="HostTag">Tag</sys:String>
<sys:String x:Key="HostAddress">Address</sys:String>
<sys:String x:Key="HostUserName">UserName</sys:String>
<sys:String x:Key="HostPassword">Password</sys:String>
<sys:String x:Key="HostPort">Port</sys:String>
</ResourceDictionary> </ResourceDictionary>

View File

@ -8,14 +8,18 @@
xmlns:ctrl="clr-namespace:ProxySuper.WPF.Controls" xmlns:ctrl="clr-namespace:ProxySuper.WPF.Controls"
mc:Ignorable="d" mc:Ignorable="d"
WindowStartupLocation="CenterScreen" WindowStartupLocation="CenterScreen"
Icon="/Resources/ProxySU.ico"
Title="XrayEditorView" Height="600" Width="1000"> Title="XrayEditorView" Height="600" Width="1000">
<Grid> <Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="320" />
<ColumnDefinition Width="auto" />
</Grid.ColumnDefinitions>
<StackPanel Grid.Column="0" Margin="10">
<ctrl:HostControl />
</StackPanel>
<GroupBox Header="Host" Margin="10" Padding="10"> <StackPanel Grid.Column="1"></StackPanel>
<StackPanel>
<ctrl:HostControl />
</StackPanel>
</GroupBox>
</Grid> </Grid>
</views:MvxWindow> </views:MvxWindow>