1
0
mirror of https://github.com/proxysu/ProxySU.git synced 2024-11-26 23:26:08 +03:00
ProxySU/ProxySU_Core/Views/ClientInfo/ClientInfoWindow.xaml

131 lines
6.6 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"
Title="查看配置" Height="500" Width="800">
<Grid>
2021-04-19 07:12:23 +03:00
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="200" />
</Grid.ColumnDefinitions>
<TabControl Grid.Column="0" BorderThickness="0,1,0,0" BorderBrush="#DDD">
2021-04-17 06:50:31 +03:00
<TabItem metro:HeaderedControlHelper.HeaderFontSize="20" Padding="10,5,10,5" Header="VLESS">
<TabControl
Background="#fff"
2021-04-19 07:12:23 +03:00
SelectionChanged="BuildQrCode"
2021-04-17 06:50:31 +03:00
Style="{StaticResource MaterialDesignNavigatilRailTabControl}"
Padding="10">
2021-04-19 07:12:23 +03:00
<TabItem Width="200"
Tag="{x:Static models:XrayType.VLESS_TCP_XTLS}"
2021-04-18 13:11:35 +03:00
IsEnabled="{Binding Settings.Checked_VLESS_TCP_XTLS}"
2021-04-17 06:50:31 +03:00
Style="{StaticResource MaterialDesignNavigationRailTabItem}"
Header="VLESS-TCP-XTLS">
<local:VLESS_XTLS_Control />
</TabItem>
2021-04-19 07:12:23 +03:00
2021-04-17 06:50:31 +03:00
<TabItem Width="200"
2021-04-19 07:12:23 +03:00
Tag="{x:Static models:XrayType.VLESS_TCP}"
2021-04-17 06:50:31 +03:00
IsEnabled="{Binding Settings.Checked_VLESS_TCP}"
Style="{StaticResource MaterialDesignNavigationRailTabItem}"
Header="VLESS-TCP-TLS">
<local:VLESS_TCP_TLS_Control />
</TabItem>
2021-04-19 07:12:23 +03:00
2021-04-17 06:50:31 +03:00
<TabItem Width="200"
2021-04-19 07:12:23 +03:00
Tag="{x:Static models:XrayType.VLESS_WS}"
2021-04-17 06:50:31 +03:00
IsEnabled="{Binding Settings.Checked_VLESS_WS}"
Style="{StaticResource MaterialDesignNavigationRailTabItem}"
Header="VLESS-WebSocket-TLS">
<local:VLESS_WS_TLS_Control />
</TabItem>
2021-04-18 13:11:35 +03:00
<TabItem Width="200"
2021-04-19 07:12:23 +03:00
Tag="{x:Static models:XrayType.VLESS_KCP}"
2021-04-18 13:11:35 +03:00
IsEnabled="{Binding Settings.Checked_VLESS_KCP}"
Style="{StaticResource MaterialDesignNavigationRailTabItem}"
Header="VLESS-mKCP">
<local:VLESS_KCP_Control />
</TabItem>
2021-04-19 07:12:23 +03:00
<!--<TabItem Width="200"
2021-04-18 13:11:35 +03:00
IsEnabled="{Binding Settings.Checked_VLESS_gRPC}"
Style="{StaticResource MaterialDesignNavigationRailTabItem}"
Header="VLESS-gRPC">
<local:VLESS_gRPC_Control />
2021-04-19 07:12:23 +03:00
</TabItem>-->
2021-04-17 06:50:31 +03:00
</TabControl>
</TabItem>
<TabItem metro:HeaderedControlHelper.HeaderFontSize="20" Padding="10,5,10,5" Header="VMESS">
<TabControl
2021-04-19 07:12:23 +03:00
SelectionChanged="BuildQrCode"
2021-04-17 06:50:31 +03:00
Padding="10"
Style="{StaticResource MaterialDesignNavigatilRailTabControl}">
2021-04-19 07:12:23 +03:00
<TabItem Width="200"
Tag="{x:Static models:XrayType.VMESS_TCP}"
IsEnabled="{Binding Settings.Checked_VMESS_TCP}"
Style="{StaticResource MaterialDesignNavigationRailTabItem}"
Header="VMESS-TCP-TLS">
2021-04-17 06:50:31 +03:00
<local:VMESS_TCP_TLS_Control />
</TabItem>
<TabItem Width="200"
2021-04-19 07:12:23 +03:00
Tag="{x:Static models:XrayType.VMESS_WS}"
IsEnabled="{Binding Settings.Checked_VMESS_WS}"
Style="{StaticResource MaterialDesignNavigationRailTabItem}"
Header="VMESS-WebSocket-TLS">
2021-04-17 06:50:31 +03:00
<local:VMESS_WS_TLS_Control />
</TabItem>
<TabItem Width="200"
2021-04-19 07:12:23 +03:00
Tag="{x:Static models:XrayType.VMESS_KCP}"
IsEnabled="{Binding Settings.Checked_VMESS_KCP}"
Style="{StaticResource MaterialDesignNavigationRailTabItem}"
Header="VMESS-mKCP">
2021-04-17 06:50:31 +03:00
<local:VMESS_KCP_Control />
</TabItem>
</TabControl>
</TabItem>
<TabItem metro:HeaderedControlHelper.HeaderFontSize="20" Padding="10,5,10,5" Header="Trojan">
<TabControl
2021-04-19 07:12:23 +03:00
SelectionChanged="BuildQrCode"
2021-04-17 06:50:31 +03:00
Padding="10"
Style="{StaticResource MaterialDesignNavigatilRailTabControl}">
<TabItem Width="200"
2021-04-19 07:12:23 +03:00
Tag="{x:Static models:XrayType.Trojan_TCP}"
2021-04-17 06:50:31 +03:00
IsEnabled="{Binding Settings.Checked_Trojan_TCP}"
Style="{StaticResource MaterialDesignNavigationRailTabItem}"
2021-04-18 13:11:35 +03:00
Header="Trojan-TCP">
2021-04-17 06:50:31 +03:00
<local:Trojan_TCP_Control />
</TabItem>
</TabControl>
</TabItem>
<TabItem metro:HeaderedControlHelper.HeaderFontSize="20" Padding="10,5,10,5" Header="ShadowSocks">
<TabControl
2021-04-19 07:12:23 +03:00
SelectionChanged="BuildQrCode"
2021-04-17 06:50:31 +03:00
Padding="10"
Style="{StaticResource MaterialDesignNavigatilRailTabControl}">
<TabItem Width="200"
2021-04-19 07:12:23 +03:00
Tag="{x:Static models:XrayType.ShadowsocksAEAD}"
2021-04-17 06:50:31 +03:00
IsEnabled="{Binding Settings.CheckedShadowSocks}"
Style="{StaticResource MaterialDesignNavigationRailTabItem}"
Header="ShadowSocks">
<local:ShadowSocksControl />
</TabItem>
</TabControl>
</TabItem>
</TabControl>
2021-04-19 07:12:23 +03:00
<Image Grid.Column="1" Width="150" Height="150" x:Name="QrImage" />
2021-04-17 06:50:31 +03:00
</Grid>
</metro:MetroWindow>