2021-07-02 13:35:25 +03:00
|
|
|
<views:MvxWindow x:Class="ProxySuper.WPF.Views.BrookEditorView"
|
|
|
|
xmlns:views="clr-namespace:MvvmCross.Platforms.Wpf.Views;assembly=MvvmCross.Platforms.Wpf"
|
|
|
|
xmlns:ctrl="clr-namespace:ProxySuper.WPF.Controls"
|
|
|
|
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"
|
|
|
|
mc:Ignorable="d"
|
|
|
|
BorderThickness="0,1,0,0"
|
|
|
|
BorderBrush="#eee"
|
2021-07-06 13:30:14 +03:00
|
|
|
Icon="/Resources/ProxySU.ico"
|
|
|
|
WindowStartupLocation="CenterScreen"
|
2021-07-02 13:35:25 +03:00
|
|
|
Title="BrookEditorView" Height="600" Width="1000">
|
|
|
|
<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>
|
|
|
|
|
|
|
|
<StackPanel Grid.Column="2">
|
|
|
|
<Grid Margin="10">
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="36" />
|
|
|
|
<RowDefinition Height="36" />
|
|
|
|
<RowDefinition Height="36" />
|
|
|
|
<RowDefinition Height="36" />
|
|
|
|
<RowDefinition Height="36" />
|
|
|
|
<RowDefinition Height="36" />
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="120" />
|
|
|
|
<ColumnDefinition Width="200" />
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
|
|
|
<Label Content="类型" Grid.Row="0" Grid.Column="0" />
|
|
|
|
<ComboBox Width="200"
|
|
|
|
Height="24"
|
|
|
|
Grid.Row="0"
|
|
|
|
Grid.Column="1"
|
|
|
|
ItemsSource="{Binding Path=BrookTypes}"
|
|
|
|
SelectedValue="{Binding CheckedBrookType,Mode=TwoWay}">
|
|
|
|
</ComboBox>
|
|
|
|
|
2021-07-07 11:56:53 +03:00
|
|
|
<Label Content="端口" Grid.Row="1" Grid.Column="0" IsEnabled="{Binding EnablePort}" />
|
2021-07-02 13:35:25 +03:00
|
|
|
<TextBox IsEnabled="{Binding EnablePort}" Text="{Binding Settings.Port}" Grid.Row="1" Grid.Column="1" />
|
|
|
|
|
|
|
|
<Label Content="密码" Grid.Row="2" Grid.Column="0" />
|
|
|
|
<TextBox Text="{Binding Settings.Password}" Grid.Row="2" Grid.Column="1" />
|
|
|
|
|
2021-07-07 11:56:53 +03:00
|
|
|
<Label Content="IP" Grid.Row="3" Grid.Column="0" IsEnabled="{Binding EnableIP}" />
|
|
|
|
<TextBox IsEnabled="{Binding EnableIP}" Text="{Binding Settings.IP}" Grid.Row="3" Grid.Column="1" />
|
|
|
|
|
|
|
|
<Label Content="域名" Grid.Row="4" Grid.Column="0" IsEnabled="{Binding EnableDomain}" />
|
|
|
|
<TextBox IsEnabled="{Binding EnableDomain}" Text="{Binding Settings.Domain}" Grid.Row="4" Grid.Column="1" />
|
2021-07-02 13:35:25 +03:00
|
|
|
</Grid>
|
|
|
|
|
|
|
|
<Border BorderBrush="#eee" BorderThickness="0,1,0,0">
|
|
|
|
<Button Content="{DynamicResource Save}"
|
|
|
|
Command="{Binding SaveCommand}"
|
|
|
|
HorizontalAlignment="Right"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
Height="30"
|
|
|
|
Width="100"
|
|
|
|
Margin="40,20" />
|
|
|
|
</Border>
|
|
|
|
</StackPanel>
|
|
|
|
</Grid>
|
|
|
|
</views:MvxWindow>
|