1
0
mirror of https://github.com/proxysu/ProxySU.git synced 2024-11-21 20:56: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>
<!--Languages-->
<ResourceDictionary Source="/Resources/Languages/zh_cn.xaml" />
<!--components styles-->
<ResourceDictionary Source="/Resources/Styles/DataGridStyle.xaml" />
@ -21,7 +21,8 @@
<Style TargetType="{x:Type Label}">
<Setter Property="VerticalAlignment" Value="Center" />
</Style>
</Style>
</ResourceDictionary>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>

View File

@ -8,24 +8,53 @@
<Grid>
<GroupBox Padding="10" Header="Host">
<Grid>
<Grid.Resources >
<Style TargetType="Border" >
<Setter Property="Padding" Value="5,5,5,5" />
</Style>
</Grid.Resources>
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition />
<RowDefinition />
<RowDefinition />
<RowDefinition />
<RowDefinition Height="36" />
<RowDefinition Height="36" />
<RowDefinition Height="36" />
<RowDefinition Height="36" />
<RowDefinition Height="36" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="60" />
<ColumnDefinition Width="80" />
<ColumnDefinition Width="auto" />
</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"
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}"
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>
</GroupBox>
</Grid>

View File

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

View File

@ -23,7 +23,13 @@
<sys:String x:Key="MainDataGridColumnActionInstall">Install</sys:String>
<sys:String x:Key="MainDataGridColumnActionEdit">Edit</sys:String>
<sys:String x:Key="MainDataGridColumnActionDelete">Delete</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>

View File

@ -23,4 +23,13 @@
<sys:String x:Key="MainDataGridColumnActionInstall">安装</sys:String>
<sys:String x:Key="MainDataGridColumnActionEdit">编辑</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>

View File

@ -8,14 +8,18 @@
xmlns:ctrl="clr-namespace:ProxySuper.WPF.Controls"
mc:Ignorable="d"
WindowStartupLocation="CenterScreen"
Icon="/Resources/ProxySU.ico"
Title="XrayEditorView" Height="600" Width="1000">
<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>
<ctrl:HostControl />
</StackPanel>
</GroupBox>
<StackPanel Grid.Column="1"></StackPanel>
</Grid>
</views:MvxWindow>