<base:WindowBase
    x:Class="v2rayN.Views.AddServerWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:base="clr-namespace:v2rayN.Base"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:reactiveui="http://reactiveui.net"
    xmlns:resx="clr-namespace:ServiceLib.Resx;assembly=ServiceLib"
    xmlns:vms="clr-namespace:ServiceLib.ViewModels;assembly=ServiceLib"
    Title="{x:Static resx:ResUI.menuServers}"
    Width="900"
    Height="700"
    x:TypeArguments="vms:AddServerViewModel"
    ResizeMode="CanResize"
    ShowInTaskbar="False"
    Style="{StaticResource WindowGlobal}"
    WindowStartupLocation="CenterScreen"
    mc:Ignorable="d">
    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Popupbox.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Window.Resources>
    <DockPanel Margin="{StaticResource Margin8}">
        <StackPanel
            Margin="{StaticResource Margin4}"
            HorizontalAlignment="Center"
            DockPanel.Dock="Bottom"
            Orientation="Horizontal">
            <Button
                x:Name="btnSave"
                Width="100"
                Content="{x:Static resx:ResUI.TbConfirm}"
                IsDefault="True"
                Style="{StaticResource DefButton}" />
            <Button
                x:Name="btnCancel"
                Width="100"
                Margin="{StaticResource MarginLeftRight8}"
                Content="{x:Static resx:ResUI.TbCancel}"
                IsCancel="true"
                Style="{StaticResource DefButton}" />
        </StackPanel>
        <ScrollViewer
            materialDesign:ScrollViewerAssist.IsAutoHideEnabled="True"
            HorizontalScrollBarVisibility="Auto"
            VerticalScrollBarVisibility="Auto">
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                </Grid.RowDefinitions>

                <Grid Grid.Row="0">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="300" />
                        <ColumnDefinition Width="Auto" />
                        <ColumnDefinition Width="Auto" />
                    </Grid.ColumnDefinitions>

                    <TextBlock
                        Grid.Row="0"
                        Grid.Column="0"
                        Margin="{StaticResource Margin4}"
                        Style="{StaticResource ModuleTitle}"
                        Text="{x:Static resx:ResUI.menuServers}" />
                    <StackPanel
                        Grid.Row="0"
                        Grid.Column="2"
                        Orientation="Horizontal">
                        <ComboBox
                            x:Name="cmbCoreType"
                            Width="200"
                            Margin="{StaticResource Margin4}"
                            materialDesign:HintAssist.Hint="{x:Static resx:ResUI.TbCoreType}"
                            Style="{StaticResource DefComboBox}" />
                    </StackPanel>

                    <TextBlock
                        Grid.Row="1"
                        Grid.Column="0"
                        Margin="{StaticResource Margin4}"
                        VerticalAlignment="Center"
                        Style="{StaticResource ToolbarTextBlock}"
                        Text="{x:Static resx:ResUI.TbRemarks}" />
                    <TextBox
                        x:Name="txtRemarks"
                        Grid.Row="1"
                        Grid.Column="1"
                        Width="400"
                        Margin="{StaticResource Margin4}"
                        Style="{StaticResource DefTextBox}" />

                    <TextBlock
                        Grid.Row="2"
                        Grid.Column="0"
                        Margin="{StaticResource Margin4}"
                        VerticalAlignment="Center"
                        Style="{StaticResource ToolbarTextBlock}"
                        Text="{x:Static resx:ResUI.TbAddress}" />
                    <TextBox
                        x:Name="txtAddress"
                        Grid.Row="2"
                        Grid.Column="1"
                        Width="400"
                        Margin="{StaticResource Margin4}"
                        Style="{StaticResource DefTextBox}" />

                    <TextBlock
                        Grid.Row="3"
                        Grid.Column="0"
                        Margin="{StaticResource Margin4}"
                        VerticalAlignment="Center"
                        Style="{StaticResource ToolbarTextBlock}"
                        Text="{x:Static resx:ResUI.TbPort}" />
                    <TextBox
                        x:Name="txtPort"
                        Grid.Row="3"
                        Grid.Column="1"
                        Width="200"
                        Margin="{StaticResource Margin4}"
                        HorizontalAlignment="Left"
                        Style="{StaticResource DefTextBox}" />
                </Grid>

                <Separator
                    Grid.Row="1"
                    Margin="0,2"
                    Style="{DynamicResource MaterialDesignSeparator}" />

                <Grid
                    x:Name="gridVMess"
                    Grid.Row="2"
                    Visibility="Collapsed">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="300" />
                        <ColumnDefinition Width="Auto" />
                        <ColumnDefinition Width="Auto" />
                    </Grid.ColumnDefinitions>

                    <TextBlock
                        Grid.Row="1"
                        Grid.Column="0"
                        Margin="{StaticResource Margin4}"
                        VerticalAlignment="Center"
                        Style="{StaticResource ToolbarTextBlock}"
                        Text="{x:Static resx:ResUI.TbId}" />
                    <TextBox
                        x:Name="txtId"
                        Grid.Row="1"
                        Grid.Column="1"
                        Width="400"
                        Margin="{StaticResource Margin4}"
                        Style="{StaticResource DefTextBox}" />
                    <Button
                        x:Name="btnGUID"
                        Grid.Row="1"
                        Grid.Column="2"
                        Margin="{StaticResource MarginLeftRight4}"
                        Content="{x:Static resx:ResUI.TbGUID}"
                        Style="{StaticResource DefButton}" />

                    <TextBlock
                        Grid.Row="2"
                        Grid.Column="0"
                        Margin="{StaticResource Margin4}"
                        VerticalAlignment="Center"
                        Style="{StaticResource ToolbarTextBlock}"
                        Text="{x:Static resx:ResUI.TbAlterId}" />
                    <TextBox
                        x:Name="txtAlterId"
                        Grid.Row="2"
                        Grid.Column="1"
                        Width="200"
                        Margin="{StaticResource Margin4}"
                        HorizontalAlignment="Left"
                        Style="{StaticResource DefTextBox}" />

                    <TextBlock
                        Grid.Row="3"
                        Grid.Column="0"
                        Margin="{StaticResource Margin4}"
                        VerticalAlignment="Center"
                        Style="{StaticResource ToolbarTextBlock}"
                        Text="{x:Static resx:ResUI.TbSecurity}" />
                    <ComboBox
                        x:Name="cmbSecurity"
                        Grid.Row="3"
                        Grid.Column="1"
                        Width="200"
                        Margin="{StaticResource Margin4}"
                        Style="{StaticResource DefComboBox}" />

                    <TextBlock
                        Grid.Row="4"
                        Grid.Column="0"
                        Margin="{StaticResource Margin4}"
                        VerticalAlignment="Center"
                        Style="{StaticResource ToolbarTextBlock}"
                        Text="{x:Static resx:ResUI.TbSettingsMuxEnabled}" />
                    <ToggleButton
                        x:Name="togmuxEnabled"
                        Grid.Row="4"
                        Grid.Column="1"
                        Margin="{StaticResource Margin4}"
                        HorizontalAlignment="Left" />
                </Grid>
                <Grid
                    x:Name="gridSs"
                    Grid.Row="2"
                    Visibility="Collapsed">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="300" />
                        <ColumnDefinition Width="Auto" />
                    </Grid.ColumnDefinitions>

                    <TextBlock
                        Grid.Row="1"
                        Grid.Column="0"
                        Margin="{StaticResource Margin4}"
                        VerticalAlignment="Center"
                        Style="{StaticResource ToolbarTextBlock}"
                        Text="{x:Static resx:ResUI.TbId3}" />
                    <TextBox
                        x:Name="txtId3"
                        Grid.Row="1"
                        Grid.Column="1"
                        Width="400"
                        Margin="{StaticResource Margin4}"
                        Style="{StaticResource DefTextBox}" />

                    <TextBlock
                        Grid.Row="2"
                        Grid.Column="0"
                        Margin="{StaticResource Margin4}"
                        VerticalAlignment="Center"
                        Style="{StaticResource ToolbarTextBlock}"
                        Text="{x:Static resx:ResUI.TbSecurity3}" />
                    <ComboBox
                        x:Name="cmbSecurity3"
                        Grid.Row="2"
                        Grid.Column="1"
                        Width="300"
                        Margin="{StaticResource Margin4}"
                        Style="{StaticResource DefComboBox}" />

                    <TextBlock
                        Grid.Row="3"
                        Grid.Column="0"
                        Margin="{StaticResource Margin4}"
                        VerticalAlignment="Center"
                        Style="{StaticResource ToolbarTextBlock}"
                        Text="{x:Static resx:ResUI.TbUot}" />
                    <ToggleButton
                        x:Name="togUotEnabled3"
                        Grid.Row="3"
                        Grid.Column="1"
                        Margin="{StaticResource Margin4}"
                        HorizontalAlignment="Left" />

                    <TextBlock
                        Grid.Row="4"
                        Grid.Column="0"
                        Margin="{StaticResource Margin4}"
                        VerticalAlignment="Center"
                        Style="{StaticResource ToolbarTextBlock}"
                        Text="{x:Static resx:ResUI.TbSettingsMuxEnabled}" />
                    <ToggleButton
                        x:Name="togmuxEnabled3"
                        Grid.Row="4"
                        Grid.Column="1"
                        Margin="{StaticResource Margin4}"
                        HorizontalAlignment="Left" />
                </Grid>
                <Grid
                    x:Name="gridSocks"
                    Grid.Row="2"
                    Visibility="Collapsed">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="300" />
                        <ColumnDefinition Width="Auto" />
                    </Grid.ColumnDefinitions>

                    <TextBlock
                        Grid.Row="1"
                        Grid.Column="0"
                        Margin="{StaticResource Margin4}"
                        VerticalAlignment="Center"
                        Style="{StaticResource ToolbarTextBlock}"
                        Text="{x:Static resx:ResUI.TbSecurity4}" />
                    <TextBox
                        x:Name="txtSecurity4"
                        Grid.Row="1"
                        Grid.Column="1"
                        Width="400"
                        Margin="{StaticResource Margin4}"
                        Style="{StaticResource DefTextBox}" />

                    <TextBlock
                        Grid.Row="2"
                        Grid.Column="0"
                        Margin="{StaticResource Margin4}"
                        VerticalAlignment="Center"
                        Style="{StaticResource ToolbarTextBlock}"
                        Text="{x:Static resx:ResUI.TbId4}" />
                    <TextBox
                        x:Name="txtId4"
                        Grid.Row="2"
                        Grid.Column="1"
                        Width="400"
                        Margin="{StaticResource Margin4}"
                        Style="{StaticResource DefTextBox}" />

                    <TextBlock
                        x:Name="tbHttpHeaders"
                        Grid.Row="3"
                        Grid.Column="0"
                        Margin="{StaticResource Margin4}"
                        VerticalAlignment="Top"
                        Style="{StaticResource ToolbarTextBlock}"
                        Text="{x:Static resx:ResUI.TbHttpOutboundHeaders}"
                        Visibility="Collapsed" />
                    <TextBox
                        x:Name="txtHttpHeadersJson"
                        Grid.Row="3"
                        Grid.Column="1"
                        Width="400"
                        Margin="{StaticResource Margin4}"
                        materialDesign:HintAssist.Hint="{x:Static resx:ResUI.TipHttpOutboundHeaders}"
                        AcceptsReturn="True"
                        HorizontalScrollBarVisibility="Auto"
                        MaxLines="8"
                        MinLines="4"
                        Style="{StaticResource MyOutlinedTextBox}"
                        TextWrapping="NoWrap"
                        VerticalScrollBarVisibility="Auto"
                        Visibility="Collapsed" />
                </Grid>
                <Grid
                    x:Name="gridVLESS"
                    Grid.Row="2"
                    Visibility="Collapsed">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="300" />
                        <ColumnDefinition Width="Auto" />
                        <ColumnDefinition Width="Auto" />
                    </Grid.ColumnDefinitions>

                    <TextBlock
                        Grid.Row="1"
                        Grid.Column="0"
                        Margin="{StaticResource Margin4}"
                        VerticalAlignment="Center"
                        Style="{StaticResource ToolbarTextBlock}"
                        Text="{x:Static resx:ResUI.TbId5}" />
                    <TextBox
                        x:Name="txtId5"
                        Grid.Row="1"
                        Grid.Column="1"
                        Width="400"
                        Margin="{StaticResource Margin4}"
                        Style="{StaticResource DefTextBox}" />
                    <Button
                        x:Name="btnGUID5"
                        Grid.Row="1"
                        Grid.Column="2"
                        Margin="{StaticResource MarginLeftRight4}"
                        Content="{x:Static resx:ResUI.TbGUID}"
                        Style="{StaticResource DefButton}" />

                    <TextBlock
                        Grid.Row="2"
                        Grid.Column="0"
                        Margin="{StaticResource Margin4}"
                        VerticalAlignment="Center"
                        Style="{StaticResource ToolbarTextBlock}"
                        Text="{x:Static resx:ResUI.TbFlow5}" />
                    <ComboBox
                        x:Name="cmbFlow5"
                        Grid.Row="2"
                        Grid.Column="1"
                        Width="200"
                        Margin="{StaticResource Margin4}"
                        Style="{StaticResource DefComboBox}" />

                    <TextBlock
                        Grid.Row="3"
                        Grid.Column="0"
                        Margin="{StaticResource Margin4}"
                        VerticalAlignment="Center"
                        Style="{StaticResource ToolbarTextBlock}"
                        Text="{x:Static resx:ResUI.TbSecurity5}" />
                    <TextBox
                        x:Name="txtSecurity5"
                        Grid.Row="3"
                        Grid.Column="1"
                        Width="400"
                        Margin="{StaticResource Margin4}"
                        HorizontalAlignment="Left"
                        Style="{StaticResource DefTextBox}" />

                    <TextBlock
                        Grid.Row="4"
                        Grid.Column="0"
                        Margin="{StaticResource Margin4}"
                        VerticalAlignment="Center"
                        Style="{StaticResource ToolbarTextBlock}"
                        Text="{x:Static resx:ResUI.TbSettingsMuxEnabled}" />
                    <ToggleButton
                        x:Name="togmuxEnabled5"
                        Grid.Row="4"
                        Grid.Column="1"
                        Margin="{StaticResource Margin4}"
                        HorizontalAlignment="Left" />
                </Grid>
                <Grid
                    x:Name="gridTrojan"
                    Grid.Row="2"
                    Visibility="Collapsed">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="300" />
                        <ColumnDefinition Width="Auto" />
                    </Grid.ColumnDefinitions>

                    <TextBlock
                        Grid.Row="1"
                        Grid.Column="0"
                        Margin="{StaticResource Margin4}"
                        VerticalAlignment="Center"
                        Style="{StaticResource ToolbarTextBlock}"
                        Text="{x:Static resx:ResUI.TbId3}" />
                    <TextBox
                        x:Name="txtId6"
                        Grid.Row="1"
                        Grid.Column="1"
                        Width="400"
                        Margin="{StaticResource Margin4}"
                        Style="{StaticResource DefTextBox}" />

                    <TextBlock
                        Grid.Row="2"
                        Grid.Column="0"
                        Margin="{StaticResource Margin4}"
                        VerticalAlignment="Center"
                        Style="{StaticResource ToolbarTextBlock}"
                        Text="{x:Static resx:ResUI.TbFlow5}" />
                    <ComboBox
                        x:Name="cmbFlow6"
                        Grid.Row="2"
                        Grid.Column="1"
                        Width="200"
                        Margin="{StaticResource Margin4}"
                        Style="{StaticResource DefComboBox}" />

                    <TextBlock
                        Grid.Row="4"
                        Grid.Column="0"
                        Margin="{StaticResource Margin4}"
                        VerticalAlignment="Center"
                        Style="{StaticResource ToolbarTextBlock}"
                        Text="{x:Static resx:ResUI.TbSettingsMuxEnabled}" />
                    <ToggleButton
                        x:Name="togmuxEnabled6"
                        Grid.Row="4"
                        Grid.Column="1"
                        Margin="{StaticResource Margin4}"
                        HorizontalAlignment="Left" />
                </Grid>
                <Grid
                    x:Name="gridHysteria2"
                    Grid.Row="2"
                    Visibility="Collapsed">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="300" />
                        <ColumnDefinition Width="Auto" />
                        <ColumnDefinition Width="Auto" />
                    </Grid.ColumnDefinitions>

                    <TextBlock
                        Grid.Row="1"
                        Grid.Column="0"
                        Margin="{StaticResource Margin4}"
                        VerticalAlignment="Center"
                        Style="{StaticResource ToolbarTextBlock}"
                        Text="{x:Static resx:ResUI.TbId3}" />
                    <TextBox
                        x:Name="txtId7"
                        Grid.Row="1"
                        Grid.Column="1"
                        Width="400"
                        Margin="{StaticResource Margin4}"
                        Style="{StaticResource DefTextBox}" />
                    <materialDesign:PopupBox
                        Grid.Row="1"
                        Grid.Column="2"
                        HorizontalAlignment="Left"
                        VerticalAlignment="Center"
                        StaysOpen="True"
                        Style="{StaticResource MaterialDesignToolForegroundPopupBox}">
                        <StackPanel>
                            <TextBlock
                                Margin="{StaticResource Margin4}"
                                VerticalAlignment="Center"
                                Style="{StaticResource ToolbarTextBlock}"
                                Text="{x:Static resx:ResUI.TbPath7}" />
                            <TextBox
                                x:Name="txtPath7"
                                Width="400"
                                Margin="{StaticResource Margin4}"
                                Style="{StaticResource DefTextBox}" />
                            <TextBlock
                                Margin="{StaticResource Margin4}"
                                VerticalAlignment="Center"
                                Style="{StaticResource ToolbarTextBlock}"
                                Text="{x:Static resx:ResUI.TbGeckoPacketSize}" />
                            <StackPanel Orientation="Horizontal">
                                <TextBox
                                    x:Name="txtMinGeckoPacketSize"
                                    Width="90"
                                    Margin="{StaticResource Margin4}"
                                    materialDesign:HintAssist.Hint="Min"
                                    Style="{StaticResource DefTextBox}" />
                                <TextBox
                                    x:Name="txtMaxGeckoPacketSize"
                                    Width="90"
                                    Margin="{StaticResource Margin4}"
                                    materialDesign:HintAssist.Hint="Max"
                                    Style="{StaticResource DefTextBox}" />
                            </StackPanel>
                            <TextBlock
                                Margin="{StaticResource Margin4}"
                                VerticalAlignment="Center"
                                Style="{StaticResource ToolbarTextBlock}"
                                Text="{x:Static resx:ResUI.TbHy2RealmUrl}" />
                            <TextBox
                                x:Name="txtHy2RealmUrl"
                                Width="400"
                                Margin="{StaticResource Margin4}"
                                Style="{StaticResource DefTextBox}" />
                            <TextBlock
                                Width="400"
                                Margin="{StaticResource Margin4}"
                                VerticalAlignment="Center"
                                Style="{StaticResource ToolbarTextBlock}"
                                Text="{x:Static resx:ResUI.TbHy2RealmUrlTip}"
                                TextWrapping="Wrap" />
                        </StackPanel>
                    </materialDesign:PopupBox>

                    <TextBlock
                        Grid.Row="3"
                        Grid.Column="0"
                        Margin="{StaticResource Margin4}"
                        VerticalAlignment="Center"
                        Style="{StaticResource ToolbarTextBlock}"
                        Text="{x:Static resx:ResUI.TbPorts7}" />
                    <TextBox
                        x:Name="txtPorts7"
                        Grid.Row="3"
                        Grid.Column="1"
                        Width="400"
                        Margin="{StaticResource Margin4}"
                        HorizontalAlignment="Left"
                        materialDesign:HintAssist.Hint="1000-2000,3000,4000"
                        Style="{StaticResource DefTextBox}" />
                    <TextBlock
                        Grid.Row="3"
                        Grid.Column="2"
                        Width="200"
                        Margin="{StaticResource Margin4}"
                        VerticalAlignment="Center"
                        Style="{StaticResource ToolbarTextBlock}"
                        Text="{x:Static resx:ResUI.TbPorts7Tips}"
                        TextWrapping="Wrap" />

                    <TextBlock
                        Grid.Row="4"
                        Grid.Column="0"
                        Margin="{StaticResource Margin4}"
                        VerticalAlignment="Center"
                        Style="{StaticResource ToolbarTextBlock}"
                        Text="{x:Static resx:ResUI.TbHopInt7}" />
                    <TextBox
                        x:Name="txtHopInt7"
                        Grid.Row="4"
                        Grid.Column="1"
                        Width="200"
                        Margin="{StaticResource Margin4}"
                        HorizontalAlignment="Left"
                        Style="{StaticResource DefTextBox}" />

                    <TextBlock
                        Grid.Row="5"
                        Grid.Column="0"
                        Margin="{StaticResource Margin4}"
                        VerticalAlignment="Center"
                        Style="{StaticResource ToolbarTextBlock}"
                        Text="{x:Static resx:ResUI.TbSettingsHysteriaBandwidth}" />
                    <StackPanel
                        Grid.Row="5"
                        Grid.Column="1"
                        Orientation="Horizontal">
                        <TextBox
                            x:Name="txtUpMbps7"
                            Width="90"
                            Margin="{StaticResource Margin4}"
                            materialDesign:HintAssist.Hint="Up"
                            Style="{StaticResource DefTextBox}" />
                        <TextBox
                            x:Name="txtDownMbps7"
                            Width="90"
                            Margin="{StaticResource Margin4}"
                            materialDesign:HintAssist.Hint="Down"
                            Style="{StaticResource DefTextBox}" />
                    </StackPanel>
                </Grid>
                <Grid
                    x:Name="gridTuic"
                    Grid.Row="2"
                    Visibility="Collapsed">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="300" />
                        <ColumnDefinition Width="Auto" />
                    </Grid.ColumnDefinitions>

                    <TextBlock
                        Grid.Row="1"
                        Grid.Column="0"
                        Margin="{StaticResource Margin4}"
                        VerticalAlignment="Center"
                        Style="{StaticResource ToolbarTextBlock}"
                        Text="{x:Static resx:ResUI.TbId}" />
                    <TextBox
                        x:Name="txtId8"
                        Grid.Row="1"
                        Grid.Column="1"
                        Width="400"
                        Margin="{StaticResource Margin4}"
                        Style="{StaticResource DefTextBox}" />

                    <TextBlock
                        Grid.Row="2"
                        Grid.Column="0"
                        Margin="{StaticResource Margin4}"
                        VerticalAlignment="Center"
                        Style="{StaticResource ToolbarTextBlock}"
                        Text="{x:Static resx:ResUI.TbId3}" />
                    <TextBox
                        x:Name="txtSecurity8"
                        Grid.Row="2"
                        Grid.Column="1"
                        Width="400"
                        Margin="{StaticResource Margin4}"
                        Style="{StaticResource DefTextBox}" />

                    <TextBlock
                        Grid.Row="3"
                        Grid.Column="0"
                        Margin="{StaticResource Margin4}"
                        VerticalAlignment="Center"
                        Style="{StaticResource ToolbarTextBlock}"
                        Text="{x:Static resx:ResUI.TbHeaderType8}" />
                    <ComboBox
                        x:Name="cmbCongestionControl8"
                        Grid.Row="3"
                        Grid.Column="1"
                        Width="200"
                        Margin="{StaticResource Margin4}"
                        Style="{StaticResource DefComboBox}" />
                </Grid>
                <Grid
                    x:Name="gridWireguard"
                    Grid.Row="2"
                    Visibility="Collapsed">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="300" />
                        <ColumnDefinition Width="Auto" />
                    </Grid.ColumnDefinitions>

                    <TextBlock
                        Grid.Row="1"
                        Grid.Column="0"
                        Margin="{StaticResource Margin4}"
                        VerticalAlignment="Center"
                        Style="{StaticResource ToolbarTextBlock}"
                        Text="{x:Static resx:ResUI.TbPrivateKey}" />
                    <TextBox
                        x:Name="txtId9"
                        Grid.Row="1"
                        Grid.Column="1"
                        Width="400"
                        Margin="{StaticResource Margin4}"
                        Style="{StaticResource DefTextBox}" />

                    <TextBlock
                        Grid.Row="2"
                        Grid.Column="0"
                        Margin="{StaticResource Margin4}"
                        VerticalAlignment="Center"
                        Style="{StaticResource ToolbarTextBlock}"
                        Text="{x:Static resx:ResUI.TbPublicKey}" />
                    <TextBox
                        x:Name="txtPublicKey9"
                        Grid.Row="2"
                        Grid.Column="1"
                        Width="400"
                        Margin="{StaticResource Margin4}"
                        HorizontalAlignment="Left"
                        Style="{StaticResource DefTextBox}" />

                    <TextBlock
                        Grid.Row="3"
                        Grid.Column="0"
                        Margin="{StaticResource Margin4}"
                        VerticalAlignment="Center"
                        Style="{StaticResource ToolbarTextBlock}"
                        Text="{x:Static resx:ResUI.TbPreSharedKey}" />
                    <TextBox
                        x:Name="txtPreSharedKey9"
                        Grid.Row="3"
                        Grid.Column="1"
                        Width="400"
                        Margin="{StaticResource Margin4}"
                        HorizontalAlignment="Left"
                        Style="{StaticResource DefTextBox}" />

                    <TextBlock
                        Grid.Row="4"
                        Grid.Column="0"
                        Margin="{StaticResource Margin4}"
                        VerticalAlignment="Center"
                        Style="{StaticResource ToolbarTextBlock}"
                        Text="{x:Static resx:ResUI.TbReserved}" />
                    <TextBox
                        x:Name="txtPath9"
                        Grid.Row="4"
                        Grid.Column="1"
                        Width="400"
                        Margin="{StaticResource Margin4}"
                        materialDesign:HintAssist.Hint="0, 0, 0"
                        Style="{StaticResource DefTextBox}" />

                    <TextBlock
                        Grid.Row="5"
                        Grid.Column="0"
                        Margin="{StaticResource Margin4}"
                        VerticalAlignment="Center"
                        Style="{StaticResource ToolbarTextBlock}"
                        Text="{x:Static resx:ResUI.TbLocalAddress}" />
                    <TextBox
                        x:Name="txtRequestHost9"
                        Grid.Row="5"
                        Grid.Column="1"
                        Width="400"
                        Margin="{StaticResource Margin4}"
                        materialDesign:HintAssist.Hint="Ipv4,Ipv6"
                        Style="{StaticResource DefTextBox}" />

                    <TextBlock
                        Grid.Row="6"
                        Grid.Column="0"
                        Margin="{StaticResource Margin4}"
                        VerticalAlignment="Center"
                        Style="{StaticResource ToolbarTextBlock}"
                        Text="{x:Static resx:ResUI.TbMtu}" />
                    <TextBox
                        x:Name="txtShortId9"
                        Grid.Row="6"
                        Grid.Column="1"
                        Width="200"
                        Margin="{StaticResource Margin4}"
                        HorizontalAlignment="Left"
                        materialDesign:HintAssist.Hint="1280"
                        Style="{StaticResource DefTextBox}" />
                </Grid>
                <Grid
                    x:Name="gridAnytls"
                    Grid.Row="2"
                    Visibility="Collapsed">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="300" />
                        <ColumnDefinition Width="Auto" />
                    </Grid.ColumnDefinitions>

                    <TextBlock
                        Grid.Row="1"
                        Grid.Column="0"
                        Margin="{StaticResource Margin4}"
                        VerticalAlignment="Center"
                        Style="{StaticResource ToolbarTextBlock}"
                        Text="{x:Static resx:ResUI.TbId3}" />
                    <TextBox
                        x:Name="txtId11"
                        Grid.Row="1"
                        Grid.Column="1"
                        Width="400"
                        Margin="{StaticResource Margin4}"
                        Style="{StaticResource DefTextBox}" />
                </Grid>
                <Grid
                    x:Name="gridNaive"
                    Grid.Row="2"
                    Visibility="Collapsed">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="300" />
                        <ColumnDefinition Width="Auto" />
                    </Grid.ColumnDefinitions>

                    <TextBlock
                        Grid.Row="1"
                        Grid.Column="0"
                        Margin="{StaticResource Margin4}"
                        VerticalAlignment="Center"
                        Style="{StaticResource ToolbarTextBlock}"
                        Text="{x:Static resx:ResUI.TbUsername}" />
                    <TextBox
                        x:Name="txtId12"
                        Grid.Row="1"
                        Grid.Column="1"
                        Width="400"
                        Margin="{StaticResource Margin4}"
                        Style="{StaticResource DefTextBox}" />

                    <TextBlock
                        Grid.Row="2"
                        Grid.Column="0"
                        Margin="{StaticResource Margin4}"
                        VerticalAlignment="Center"
                        Style="{StaticResource ToolbarTextBlock}"
                        Text="{x:Static resx:ResUI.TbId3}" />
                    <TextBox
                        x:Name="txtSecurity12"
                        Grid.Row="2"
                        Grid.Column="1"
                        Width="400"
                        Margin="{StaticResource Margin4}"
                        Style="{StaticResource DefTextBox}" />

                    <TextBlock
                        Grid.Row="3"
                        Grid.Column="0"
                        Margin="{StaticResource Margin4}"
                        VerticalAlignment="Center"
                        Style="{StaticResource ToolbarTextBlock}"
                        Text="QUIC" />
                    <StackPanel
                        Grid.Row="3"
                        Grid.Column="1"
                        VerticalAlignment="Center"
                        Orientation="Horizontal">
                        <ToggleButton
                            x:Name="togNaiveQuic12"
                            Margin="{StaticResource Margin4}"
                            HorizontalAlignment="Left" />
                        <ComboBox
                            x:Name="cmbCongestionControl12"
                            Width="200"
                            Margin="{StaticResource Margin4}"
                            HorizontalAlignment="Right"
                            materialDesign:HintAssist.Hint="{x:Static resx:ResUI.TbHeaderType8}"
                            Style="{StaticResource DefComboBox}" />
                    </StackPanel>

                    <TextBlock
                        Grid.Row="4"
                        Grid.Column="0"
                        Margin="{StaticResource Margin4}"
                        VerticalAlignment="Center"
                        Style="{StaticResource ToolbarTextBlock}"
                        Text="{x:Static resx:ResUI.TbInsecureConcurrency}" />
                    <TextBox
                        x:Name="txtInsecureConcurrency12"
                        Grid.Row="4"
                        Grid.Column="1"
                        Width="200"
                        Margin="{StaticResource Margin4}"
                        HorizontalAlignment="Left"
                        Style="{StaticResource DefTextBox}" />

                    <TextBlock
                        Grid.Row="5"
                        Grid.Column="0"
                        Margin="{StaticResource Margin4}"
                        VerticalAlignment="Center"
                        Style="{StaticResource ToolbarTextBlock}"
                        Text="{x:Static resx:ResUI.TbUot}" />
                    <ToggleButton
                        x:Name="togUotEnabled12"
                        Grid.Row="5"
                        Grid.Column="1"
                        Margin="{StaticResource Margin4}"
                        HorizontalAlignment="Left" />
                </Grid>

                <Separator
                    x:Name="sepa2"
                    Grid.Row="3"
                    Margin="0,2"
                    Style="{DynamicResource MaterialDesignSeparator}" />

                <Grid x:Name="gridTransport" Grid.Row="4">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                    </Grid.RowDefinitions>

                    <TextBlock
                        Grid.Row="0"
                        Margin="{StaticResource Margin4}"
                        Style="{StaticResource ModuleTitle}"
                        Text="{x:Static resx:ResUI.GbTransport}" />

                    <Grid Grid.Row="1">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="300" />
                            <ColumnDefinition Width="Auto" />
                            <ColumnDefinition Width="Auto" />
                        </Grid.ColumnDefinitions>
                        <TextBlock
                            Grid.Column="0"
                            Margin="{StaticResource Margin4}"
                            VerticalAlignment="Center"
                            Style="{StaticResource ToolbarTextBlock}"
                            Text="{x:Static resx:ResUI.TbNetwork}" />
                        <ComboBox
                            x:Name="cmbNetwork"
                            Grid.Column="1"
                            Width="200"
                            Margin="{StaticResource Margin4}"
                            Style="{StaticResource DefComboBox}" />
                        <TextBlock
                            Grid.Column="2"
                            Margin="{StaticResource Margin4}"
                            VerticalAlignment="Center"
                            Style="{StaticResource ToolbarTextBlock}"
                            Text="{x:Static resx:ResUI.TipNetwork}" />
                    </Grid>

                    <Grid Grid.Row="2">
                        <Grid x:Name="gridTransportRaw" Visibility="Collapsed">
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="Auto" />
                            </Grid.RowDefinitions>

                            <Grid Grid.Row="0">
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="300" />
                                    <ColumnDefinition Width="Auto" />
                                </Grid.ColumnDefinitions>
                                <TextBlock
                                    Grid.Row="0"
                                    Grid.Column="0"
                                    Margin="{StaticResource Margin4}"
                                    VerticalAlignment="Center"
                                    Style="{StaticResource ToolbarTextBlock}"
                                    Text="{x:Static resx:ResUI.TransportHeaderType1}" />
                                <ComboBox
                                    x:Name="cmbHeaderTypeRaw"
                                    Grid.Row="0"
                                    Grid.Column="1"
                                    Width="200"
                                    Margin="{StaticResource Margin4}"
                                    Style="{StaticResource DefComboBox}" />
                            </Grid>

                            <Grid
                                x:Name="gridTransportRawHttp"
                                Grid.Row="1"
                                Visibility="Collapsed">
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="300" />
                                    <ColumnDefinition Width="Auto" />
                                </Grid.ColumnDefinitions>
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="Auto" />
                                    <RowDefinition Height="Auto" />
                                </Grid.RowDefinitions>
                                <TextBlock
                                    Grid.Row="0"
                                    Grid.Column="0"
                                    Margin="{StaticResource Margin4}"
                                    VerticalAlignment="Center"
                                    Style="{StaticResource ToolbarTextBlock}"
                                    Text="{x:Static resx:ResUI.TbCamouflageDomain}" />
                                <TextBox
                                    x:Name="txtRequestHostRaw"
                                    Grid.Row="0"
                                    Grid.Column="1"
                                    Width="400"
                                    Margin="{StaticResource Margin4}"
                                    Style="{StaticResource DefTextBox}" />
                                <TextBlock
                                    Grid.Row="1"
                                    Grid.Column="0"
                                    Margin="{StaticResource Margin4}"
                                    VerticalAlignment="Center"
                                    Style="{StaticResource ToolbarTextBlock}"
                                    Text="{x:Static resx:ResUI.TbPath}" />
                                <TextBox
                                    x:Name="txtPathRaw"
                                    Grid.Row="1"
                                    Grid.Column="1"
                                    Width="400"
                                    Margin="{StaticResource Margin4}"
                                    Style="{StaticResource DefTextBox}" />
                            </Grid>
                        </Grid>

                        <Grid x:Name="gridTransportXhttp" Visibility="Collapsed">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="300" />
                                <ColumnDefinition Width="Auto" />
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="Auto" />
                            </Grid.RowDefinitions>
                            <TextBlock
                                Grid.Row="0"
                                Grid.Column="0"
                                Margin="{StaticResource Margin4}"
                                VerticalAlignment="Center"
                                Style="{StaticResource ToolbarTextBlock}"
                                Text="{x:Static resx:ResUI.TransportHeaderType5}" />
                            <ComboBox
                                x:Name="cmbHeaderTypeXhttp"
                                Grid.Row="0"
                                Grid.Column="1"
                                Width="200"
                                Margin="{StaticResource Margin4}"
                                Style="{StaticResource DefComboBox}" />
                            <TextBlock
                                Grid.Row="1"
                                Grid.Column="0"
                                Margin="{StaticResource Margin4}"
                                VerticalAlignment="Center"
                                Style="{StaticResource ToolbarTextBlock}"
                                Text="{x:Static resx:ResUI.TbHost}" />
                            <TextBox
                                x:Name="txtRequestHostXhttp"
                                Grid.Row="1"
                                Grid.Column="1"
                                Width="400"
                                Margin="{StaticResource Margin4}"
                                Style="{StaticResource DefTextBox}" />
                            <TextBlock
                                Grid.Row="2"
                                Grid.Column="0"
                                Margin="{StaticResource Margin4}"
                                VerticalAlignment="Center"
                                Style="{StaticResource ToolbarTextBlock}"
                                Text="{x:Static resx:ResUI.TbPath}" />
                            <TextBox
                                x:Name="txtPathXhttp"
                                Grid.Row="2"
                                Grid.Column="1"
                                Width="400"
                                Margin="{StaticResource Margin4}"
                                Style="{StaticResource DefTextBox}" />
                            <TextBlock
                                Grid.Row="3"
                                Grid.Column="0"
                                Margin="{StaticResource Margin4}"
                                VerticalAlignment="Top"
                                Style="{StaticResource ToolbarTextBlock}"
                                Text="{x:Static resx:ResUI.TransportExtra}"
                                TextWrapping="Wrap" />
                            <TextBox
                                x:Name="txtExtraXhttp"
                                Grid.Row="3"
                                Grid.Column="1"
                                Width="400"
                                Margin="{StaticResource Margin4}"
                                VerticalAlignment="Center"
                                materialDesign:HintAssist.Hint="{x:Static resx:ResUI.TransportExtraTip}"
                                AcceptsReturn="True"
                                MaxLines="12"
                                MinLines="3"
                                Style="{StaticResource MyOutlinedTextBox}"
                                TextWrapping="Wrap" />
                        </Grid>

                        <Grid x:Name="gridTransportKcp" Visibility="Collapsed">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="300" />
                                <ColumnDefinition Width="Auto" />
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="Auto" />
                            </Grid.RowDefinitions>
                            <TextBlock
                                Grid.Row="0"
                                Grid.Column="0"
                                Margin="{StaticResource Margin4}"
                                VerticalAlignment="Center"
                                Style="{StaticResource ToolbarTextBlock}"
                                Text="{x:Static resx:ResUI.TransportHeaderType2}" />
                            <ComboBox
                                x:Name="cmbHeaderTypeKcp"
                                Grid.Row="0"
                                Grid.Column="1"
                                Width="200"
                                Margin="{StaticResource Margin4}"
                                HorizontalAlignment="Left"
                                Style="{StaticResource DefComboBox}" />
                            <TextBlock
                                Grid.Row="1"
                                Grid.Column="0"
                                Margin="{StaticResource Margin4}"
                                VerticalAlignment="Center"
                                Style="{StaticResource ToolbarTextBlock}"
                                Text="{x:Static resx:ResUI.TbMtu}" />
                            <TextBox
                                x:Name="txtKcpMtu"
                                Grid.Row="1"
                                Grid.Column="1"
                                Width="200"
                                Margin="{StaticResource Margin4}"
                                HorizontalAlignment="Left"
                                Style="{StaticResource DefTextBox}" />
                            <TextBlock
                                Grid.Row="2"
                                Grid.Column="0"
                                Margin="{StaticResource Margin4}"
                                VerticalAlignment="Center"
                                Style="{StaticResource ToolbarTextBlock}"
                                Text="Seed" />
                            <TextBox
                                x:Name="txtKcpSeed"
                                Grid.Row="2"
                                Grid.Column="1"
                                Width="400"
                                Margin="{StaticResource Margin4}"
                                HorizontalAlignment="Left"
                                Style="{StaticResource DefTextBox}" />
                        </Grid>

                        <Grid x:Name="gridTransportGrpc" Visibility="Collapsed">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="300" />
                                <ColumnDefinition Width="Auto" />
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="Auto" />
                            </Grid.RowDefinitions>
                            <TextBlock
                                Grid.Row="0"
                                Grid.Column="0"
                                Margin="{StaticResource Margin4}"
                                VerticalAlignment="Center"
                                Style="{StaticResource ToolbarTextBlock}"
                                Text="{x:Static resx:ResUI.TransportHeaderType4}" />
                            <ComboBox
                                x:Name="cmbHeaderTypeGrpc"
                                Grid.Row="0"
                                Grid.Column="1"
                                Width="200"
                                Margin="{StaticResource Margin4}"
                                Style="{StaticResource DefComboBox}" />
                            <TextBlock
                                Grid.Row="1"
                                Grid.Column="0"
                                Margin="{StaticResource Margin4}"
                                VerticalAlignment="Center"
                                Style="{StaticResource ToolbarTextBlock}"
                                Text="{x:Static resx:ResUI.TransportRequestHostTip5}" />
                            <TextBox
                                x:Name="txtRequestHostGrpc"
                                Grid.Row="1"
                                Grid.Column="1"
                                Width="400"
                                Margin="{StaticResource Margin4}"
                                Style="{StaticResource DefTextBox}" />
                            <TextBlock
                                Grid.Row="2"
                                Grid.Column="0"
                                Margin="{StaticResource Margin4}"
                                VerticalAlignment="Center"
                                Style="{StaticResource ToolbarTextBlock}"
                                Text="{x:Static resx:ResUI.TransportPathTip4}" />
                            <TextBox
                                x:Name="txtPathGrpc"
                                Grid.Row="2"
                                Grid.Column="1"
                                Width="400"
                                Margin="{StaticResource Margin4}"
                                Style="{StaticResource DefTextBox}" />
                        </Grid>

                        <Grid x:Name="gridTransportWs" Visibility="Collapsed">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="300" />
                                <ColumnDefinition Width="Auto" />
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="Auto" />
                            </Grid.RowDefinitions>
                            <TextBlock
                                Grid.Row="0"
                                Grid.Column="0"
                                Margin="{StaticResource Margin4}"
                                VerticalAlignment="Center"
                                Style="{StaticResource ToolbarTextBlock}"
                                Text="{x:Static resx:ResUI.TbHost}" />
                            <TextBox
                                x:Name="txtRequestHostWs"
                                Grid.Row="0"
                                Grid.Column="1"
                                Width="400"
                                Margin="{StaticResource Margin4}"
                                Style="{StaticResource DefTextBox}" />
                            <TextBlock
                                Grid.Row="1"
                                Grid.Column="0"
                                Margin="{StaticResource Margin4}"
                                VerticalAlignment="Center"
                                Style="{StaticResource ToolbarTextBlock}"
                                Text="{x:Static resx:ResUI.TbPath}" />
                            <TextBox
                                x:Name="txtPathWs"
                                Grid.Row="1"
                                Grid.Column="1"
                                Width="400"
                                Margin="{StaticResource Margin4}"
                                Style="{StaticResource DefTextBox}" />
                        </Grid>

                        <Grid x:Name="gridTransportHttpupgrade" Visibility="Collapsed">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="300" />
                                <ColumnDefinition Width="Auto" />
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="Auto" />
                            </Grid.RowDefinitions>
                            <TextBlock
                                Grid.Row="0"
                                Grid.Column="0"
                                Margin="{StaticResource Margin4}"
                                VerticalAlignment="Center"
                                Style="{StaticResource ToolbarTextBlock}"
                                Text="{x:Static resx:ResUI.TbHost}" />
                            <TextBox
                                x:Name="txtRequestHostHttpupgrade"
                                Grid.Row="0"
                                Grid.Column="1"
                                Width="400"
                                Margin="{StaticResource Margin4}"
                                Style="{StaticResource DefTextBox}" />
                            <TextBlock
                                Grid.Row="1"
                                Grid.Column="0"
                                Margin="{StaticResource Margin4}"
                                VerticalAlignment="Center"
                                Style="{StaticResource ToolbarTextBlock}"
                                Text="{x:Static resx:ResUI.TbPath}" />
                            <TextBox
                                x:Name="txtPathHttpupgrade"
                                Grid.Row="1"
                                Grid.Column="1"
                                Width="400"
                                Margin="{StaticResource Margin4}"
                                Style="{StaticResource DefTextBox}" />
                        </Grid>
                    </Grid>
                </Grid>

                <Grid x:Name="gridFinalmask" Grid.Row="5">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="300" />
                        <ColumnDefinition Width="Auto" />
                    </Grid.ColumnDefinitions>
                    <TextBlock
                        Grid.Row="0"
                        Grid.Column="0"
                        Margin="{StaticResource Margin4}"
                        VerticalAlignment="Center"
                        Style="{StaticResource ToolbarTextBlock}"
                        Text="{x:Static resx:ResUI.TbFinalmask}" />
                    <materialDesign:PopupBox
                        Grid.Row="0"
                        Grid.Column="1"
                        HorizontalAlignment="Left"
                        VerticalAlignment="Center"
                        StaysOpen="True"
                        Style="{StaticResource MaterialDesignToolForegroundPopupBox}">
                        <StackPanel>
                            <TextBox
                                x:Name="txtFinalmask"
                                Width="400"
                                Margin="{StaticResource Margin4}"
                                AcceptsReturn="True"
                                HorizontalScrollBarVisibility="Auto"
                                MaxLines="8"
                                MinLines="4"
                                Style="{StaticResource MyOutlinedTextBox}"
                                TextWrapping="NoWrap"
                                VerticalScrollBarVisibility="Auto" />
                        </StackPanel>
                    </materialDesign:PopupBox>
                </Grid>

                <Separator
                    Grid.Row="6"
                    Margin="0,2"
                    Style="{DynamicResource MaterialDesignSeparator}" />

                <Grid x:Name="gridTls" Grid.Row="7">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="300" />
                        <ColumnDefinition Width="Auto" />
                    </Grid.ColumnDefinitions>

                    <TextBlock
                        Grid.Row="0"
                        Grid.Column="0"
                        Margin="{StaticResource Margin4}"
                        VerticalAlignment="Center"
                        Style="{StaticResource ToolbarTextBlock}"
                        Text="{x:Static resx:ResUI.TbStreamSecurity}" />
                    <ComboBox
                        x:Name="cmbStreamSecurity"
                        Grid.Row="0"
                        Grid.Column="1"
                        Width="200"
                        Margin="{StaticResource Margin4}"
                        Style="{StaticResource DefComboBox}" />
                </Grid>
                <Grid
                    x:Name="gridTlsMore"
                    Grid.Row="8"
                    Visibility="Collapsed">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="300" />
                        <ColumnDefinition Width="Auto" />
                    </Grid.ColumnDefinitions>

                    <TextBlock
                        Grid.Row="1"
                        Grid.Column="0"
                        Margin="{StaticResource Margin4}"
                        VerticalAlignment="Center"
                        Style="{StaticResource ToolbarTextBlock}"
                        Text="{x:Static resx:ResUI.TbSNI}" />
                    <TextBox
                        x:Name="txtSNI"
                        Grid.Row="1"
                        Grid.Column="1"
                        Width="400"
                        Margin="{StaticResource Margin4}"
                        HorizontalAlignment="Left"
                        Style="{StaticResource DefTextBox}" />

                    <TextBlock
                        Grid.Row="2"
                        Grid.Column="0"
                        Margin="{StaticResource Margin4}"
                        VerticalAlignment="Center"
                        Style="{StaticResource ToolbarTextBlock}"
                        Text="{x:Static resx:ResUI.TbFingerprint}" />
                    <ComboBox
                        x:Name="cmbFingerprint"
                        Grid.Row="2"
                        Grid.Column="1"
                        Width="200"
                        Margin="{StaticResource Margin4}"
                        IsEditable="True"
                        Style="{StaticResource DefComboBox}" />

                    <TextBlock
                        Grid.Row="3"
                        Grid.Column="0"
                        Margin="{StaticResource Margin4}"
                        VerticalAlignment="Center"
                        Style="{StaticResource ToolbarTextBlock}"
                        Text="{x:Static resx:ResUI.TbAlpn}" />
                    <ComboBox
                        x:Name="cmbAlpn"
                        Grid.Row="3"
                        Grid.Column="1"
                        Width="200"
                        Margin="{StaticResource Margin4}"
                        Style="{StaticResource DefComboBox}" />

                    <TextBlock
                        Grid.Row="4"
                        Grid.Column="0"
                        Margin="{StaticResource Margin4}"
                        VerticalAlignment="Center"
                        Style="{StaticResource ToolbarTextBlock}"
                        Text="{x:Static resx:ResUI.TbAllowInsecure}" />
                    <ToggleButton
                        x:Name="togAllowInsecure"
                        Grid.Row="4"
                        Grid.Column="1"
                        Margin="{StaticResource Margin4}"
                        HorizontalAlignment="Left" />

                    <TextBlock
                        Grid.Row="5"
                        Grid.Column="0"
                        Margin="{StaticResource Margin4}"
                        VerticalAlignment="Center"
                        Style="{StaticResource ToolbarTextBlock}"
                        Text="{x:Static resx:ResUI.TbEchConfigList}" />
                    <TextBox
                        x:Name="txtEchConfigList"
                        Grid.Row="5"
                        Grid.Column="1"
                        Width="400"
                        Margin="{StaticResource Margin4}"
                        HorizontalAlignment="Left"
                        Style="{StaticResource DefTextBox}" />

                    <TextBlock
                        Grid.Row="6"
                        Grid.Column="0"
                        Margin="{StaticResource Margin4}"
                        VerticalAlignment="Center"
                        Style="{StaticResource ToolbarTextBlock}"
                        Text="{x:Static resx:ResUI.TbVerifyPeerCertByName}" />
                    <TextBox
                        x:Name="txtVerifyPeerCertByName"
                        Grid.Row="6"
                        Grid.Column="1"
                        Width="400"
                        Margin="{StaticResource Margin4}"
                        HorizontalAlignment="Left"
                        Style="{StaticResource DefTextBox}" />

                    <TextBlock
                        Grid.Row="7"
                        Grid.Column="0"
                        Margin="{StaticResource Margin4}"
                        VerticalAlignment="Center"
                        Style="{StaticResource ToolbarTextBlock}"
                        Text="{x:Static resx:ResUI.TbCertPinning}" />
                    <StackPanel
                        Grid.Row="7"
                        Grid.Column="1"
                        VerticalAlignment="Center"
                        Orientation="Horizontal">
                        <TextBlock
                            x:Name="labCertPinning"
                            Margin="{StaticResource Margin4}"
                            VerticalAlignment="Center"
                            Style="{StaticResource ToolbarTextBlock}" />
                        <materialDesign:PopupBox
                            HorizontalAlignment="Left"
                            VerticalAlignment="Center"
                            StaysOpen="True"
                            Style="{StaticResource MaterialDesignToolForegroundPopupBox}">
                            <StackPanel>
                                <TextBlock
                                    Width="400"
                                    Margin="{StaticResource Margin4}"
                                    VerticalAlignment="Center"
                                    Style="{StaticResource ToolbarTextBlock}"
                                    Text="{x:Static resx:ResUI.TbCertPinningTips}"
                                    TextWrapping="Wrap" />
                                <StackPanel HorizontalAlignment="Left" Orientation="Horizontal">
                                    <Button
                                        x:Name="btnFetchCert"
                                        Margin="{StaticResource MarginLeftRight4}"
                                        Content="{x:Static resx:ResUI.TbFetchCert}"
                                        Style="{StaticResource DefButton}" />
                                    <Button
                                        x:Name="btnFetchCertChain"
                                        Margin="{StaticResource MarginLeftRight4}"
                                        Content="{x:Static resx:ResUI.TbFetchCertChain}"
                                        Style="{StaticResource DefButton}" />
                                </StackPanel>
                                <TextBlock
                                    Width="400"
                                    Margin="{StaticResource Margin4}"
                                    VerticalAlignment="Center"
                                    Style="{StaticResource ToolbarTextBlock}"
                                    TextWrapping="Wrap">
                                    <Run Text="{x:Static resx:ResUI.TbCertSha256Tips}" />
                                    <Run FontWeight="Bold" Text="{x:Static resx:ResUI.TbXrayOnly}" />
                                </TextBlock>
                                <TextBox
                                    x:Name="txtCertSha256Pinning"
                                    Width="400"
                                    Margin="{StaticResource Margin4}"
                                    HorizontalAlignment="Left"
                                    Style="{StaticResource DefTextBox}" />
                                <TextBlock
                                    Width="400"
                                    Margin="{StaticResource Margin4}"
                                    VerticalAlignment="Center"
                                    Style="{StaticResource ToolbarTextBlock}"
                                    Text="{x:Static resx:ResUI.TbFullCertTips}"
                                    TextWrapping="Wrap" />
                                <TextBox
                                    x:Name="txtCert"
                                    Width="400"
                                    Margin="{StaticResource Margin4}"
                                    AcceptsReturn="True"
                                    HorizontalScrollBarVisibility="Auto"
                                    MaxLines="18"
                                    MinLines="6"
                                    Style="{StaticResource MyOutlinedTextBox}"
                                    TextWrapping="NoWrap"
                                    VerticalScrollBarVisibility="Auto" />
                            </StackPanel>
                        </materialDesign:PopupBox>
                    </StackPanel>
                </Grid>
                <Grid
                    x:Name="gridRealityMore"
                    Grid.Row="8"
                    Visibility="Collapsed">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="300" />
                        <ColumnDefinition Width="Auto" />
                    </Grid.ColumnDefinitions>

                    <TextBlock
                        Grid.Row="0"
                        Grid.Column="0"
                        Margin="{StaticResource Margin4}"
                        VerticalAlignment="Center"
                        Style="{StaticResource ToolbarTextBlock}"
                        Text="{x:Static resx:ResUI.TbSNI}" />
                    <TextBox
                        x:Name="txtSNI2"
                        Grid.Row="0"
                        Grid.Column="1"
                        Width="400"
                        Margin="{StaticResource Margin4}"
                        HorizontalAlignment="Left"
                        Style="{StaticResource DefTextBox}" />

                    <TextBlock
                        Grid.Row="1"
                        Grid.Column="0"
                        Margin="{StaticResource Margin4}"
                        VerticalAlignment="Center"
                        Style="{StaticResource ToolbarTextBlock}"
                        Text="{x:Static resx:ResUI.TbFingerprint}" />
                    <ComboBox
                        x:Name="cmbFingerprint2"
                        Grid.Row="1"
                        Grid.Column="1"
                        Width="200"
                        Margin="{StaticResource Margin4}"
                        IsEditable="True"
                        Style="{StaticResource DefComboBox}" />

                    <TextBlock
                        Grid.Row="2"
                        Grid.Column="0"
                        Margin="{StaticResource Margin4}"
                        VerticalAlignment="Center"
                        Style="{StaticResource ToolbarTextBlock}"
                        Text="{x:Static resx:ResUI.TbPublicKey}" />
                    <TextBox
                        x:Name="txtPublicKey"
                        Grid.Row="2"
                        Grid.Column="1"
                        Width="400"
                        Margin="{StaticResource Margin4}"
                        HorizontalAlignment="Left"
                        Style="{StaticResource DefTextBox}" />

                    <TextBlock
                        Grid.Row="3"
                        Grid.Column="0"
                        Margin="{StaticResource Margin4}"
                        VerticalAlignment="Center"
                        Style="{StaticResource ToolbarTextBlock}"
                        Text="{x:Static resx:ResUI.TbShortId}" />
                    <TextBox
                        x:Name="txtShortId"
                        Grid.Row="3"
                        Grid.Column="1"
                        Width="200"
                        Margin="{StaticResource Margin4}"
                        HorizontalAlignment="Left"
                        Style="{StaticResource DefTextBox}" />

                    <TextBlock
                        Grid.Row="4"
                        Grid.Column="0"
                        Margin="{StaticResource Margin4}"
                        VerticalAlignment="Center"
                        Style="{StaticResource ToolbarTextBlock}"
                        Text="{x:Static resx:ResUI.TbSpiderX}" />
                    <TextBox
                        x:Name="txtSpiderX"
                        Grid.Row="4"
                        Grid.Column="1"
                        Width="400"
                        Margin="{StaticResource Margin4}"
                        HorizontalAlignment="Left"
                        Style="{StaticResource DefTextBox}" />

                    <TextBlock
                        Grid.Row="5"
                        Grid.Column="0"
                        Margin="{StaticResource Margin4}"
                        VerticalAlignment="Center"
                        Style="{StaticResource ToolbarTextBlock}"
                        Text="{x:Static resx:ResUI.TbMldsa65Verify}" />
                    <TextBox
                        x:Name="txtMldsa65Verify"
                        Grid.Row="5"
                        Grid.Column="1"
                        Width="400"
                        Margin="{StaticResource Margin4}"
                        HorizontalAlignment="Left"
                        Style="{StaticResource DefTextBox}" />
                </Grid>
                <Separator
                    Grid.Row="9"
                    Margin="0,2"
                    Style="{DynamicResource MaterialDesignSeparator}" />
            </Grid>
        </ScrollViewer>
    </DockPanel>
</base:WindowBase>
