1
0
mirror of https://github.com/proxysu/ProxySU.git synced 2024-12-02 01:56:06 +03:00
ProxySU/ProxySU_Core/Views/ClientInfo/ClientInfoWindow.xaml

115 lines
5.2 KiB
Plaintext
Raw Normal View History

2021-04-17 06:50:31 +03:00
<metro:MetroWindow x:Class="ProxySU_Core.Views.ClientInfo.ClientInfoWindow"
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:metro="http://metro.mahapps.com/winfx/xaml/controls"
xmlns:local="clr-namespace:ProxySU_Core.Views.ClientInfo"
2021-04-19 07:12:23 +03:00
xmlns:dev="clr-namespace:ProxySU_Core.Models.Developers"
xmlns:models="clr-namespace:ProxySU_Core.Models"
2021-04-17 06:50:31 +03:00
mc:Ignorable="d"
2021-04-30 09:42:20 +03:00
Title="{DynamicResource ClientInfoTitle}" Height="500" Width="800">
2021-04-17 06:50:31 +03:00
<Grid>
2021-04-19 07:12:23 +03:00
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
2021-04-19 11:51:43 +03:00
<ColumnDefinition Width="220" />
2021-04-19 07:12:23 +03:00
</Grid.ColumnDefinitions>
2021-04-19 11:02:13 +03:00
<TabControl Grid.Column="0"
Padding="10"
BorderThickness="1,0,1,0"
BorderBrush="#DDD"
TabStripPlacement="Left"
SelectionChanged="BuildQrCode">
<TabItem Width="200" Height="40"
Tag="{x:Static models:XrayType.VLESS_TCP_XTLS}"
IsEnabled="{Binding Settings.Checked_VLESS_TCP_XTLS}"
Style="{StaticResource MaterialDesignNavigationRailTabItem}"
Header="VLESS-TCP-XTLS">
<local:VLESS_XTLS_Control />
</TabItem>
2021-04-19 07:12:23 +03:00
2021-04-19 11:02:13 +03:00
<TabItem Width="200" Height="40"
Tag="{x:Static models:XrayType.VLESS_TCP}"
IsEnabled="{Binding Settings.Checked_VLESS_TCP}"
metro:HeaderedControlHelper.HeaderMargin="0"
Style="{StaticResource MaterialDesignNavigationRailTabItem}"
Header="VLESS-TCP-TLS">
<local:VLESS_TCP_TLS_Control />
</TabItem>
2021-04-18 13:11:35 +03:00
2021-04-19 11:02:13 +03:00
<TabItem Width="200" Height="40"
Tag="{x:Static models:XrayType.VLESS_WS}"
IsEnabled="{Binding Settings.Checked_VLESS_WS}"
Style="{StaticResource MaterialDesignNavigationRailTabItem}"
Header="VLESS-WebSocket-TLS">
<local:VLESS_WS_TLS_Control />
2021-04-17 06:50:31 +03:00
</TabItem>
2021-04-19 11:02:13 +03:00
<TabItem Width="200" Height="40"
Tag="{x:Static models:XrayType.VLESS_KCP}"
IsEnabled="{Binding Settings.Checked_VLESS_KCP}"
Style="{StaticResource MaterialDesignNavigationRailTabItem}"
Header="VLESS-mKCP">
<local:VLESS_KCP_Control />
2021-04-17 06:50:31 +03:00
</TabItem>
2021-04-19 11:02:13 +03:00
<!--<TabItem Width="200"
Tag="{x:Static models:XrayType.VLESS_gRPC}"
IsEnabled="{Binding Settings.Checked_VLESS_gRPC}"
Style="{StaticResource MaterialDesignNavigationRailTabItem}"
Header="VLESS-gRPC">
<local:VLESS_gRPC_Control />
</TabItem>-->
2021-04-19 11:51:43 +03:00
2021-04-30 09:42:20 +03:00
<!--<TabItem Width="200" Height="40"
2021-04-19 11:02:13 +03:00
Tag="{x:Static models:XrayType.VMESS_TCP}"
IsEnabled="{Binding Settings.Checked_VMESS_TCP}"
Style="{StaticResource MaterialDesignNavigationRailTabItem}"
Header="VMESS-TCP-TLS">
<local:VMESS_TCP_TLS_Control />
2021-04-30 09:42:20 +03:00
</TabItem>-->
2021-04-17 06:50:31 +03:00
2021-04-19 11:02:13 +03:00
<TabItem Width="200" Height="40"
Tag="{x:Static models:XrayType.VMESS_WS}"
IsEnabled="{Binding Settings.Checked_VMESS_WS}"
Style="{StaticResource MaterialDesignNavigationRailTabItem}"
Header="VMESS-WebSocket-TLS">
<local:VMESS_WS_TLS_Control />
2021-04-17 06:50:31 +03:00
</TabItem>
2021-04-19 11:02:13 +03:00
<TabItem Width="200" Height="40"
Tag="{x:Static models:XrayType.VMESS_KCP}"
IsEnabled="{Binding Settings.Checked_VMESS_KCP}"
Style="{StaticResource MaterialDesignNavigationRailTabItem}"
Header="VMESS-mKCP">
<local:VMESS_KCP_Control />
</TabItem>
<TabItem Width="200" Height="40"
Tag="{x:Static models:XrayType.Trojan_TCP}"
IsEnabled="{Binding Settings.Checked_Trojan_TCP}"
Style="{StaticResource MaterialDesignNavigationRailTabItem}"
Header="Trojan-TCP">
<local:Trojan_TCP_Control />
</TabItem>
<TabItem Width="200" Height="40"
Tag="{x:Static models:XrayType.ShadowsocksAEAD}"
IsEnabled="{Binding Settings.CheckedShadowSocks}"
Style="{StaticResource MaterialDesignNavigationRailTabItem}"
Header="ShadowSocks">
<local:ShadowSocksControl />
</TabItem>
2021-04-17 06:50:31 +03:00
</TabControl>
2021-04-19 07:12:23 +03:00
2021-04-19 11:51:43 +03:00
<StackPanel Grid.Column="1" >
<Image Width="200" Height="200" x:Name="QrImage" />
2021-04-30 07:02:56 +03:00
<Button Click="SaveImage" Width="100" Content="{DynamicResource SaveAs}" />
2021-04-19 11:51:43 +03:00
</StackPanel>
2021-04-17 06:50:31 +03:00
</Grid>
</metro:MetroWindow>