<flyctrllib:WindowBigClose x:Class="ThickTcpUiInWindow.Window_Password"
                xmlns:flyctrllib="clr-namespace:FLY.ControlLibrary;assembly=FLY.ControlLibrary"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:my="clr-namespace:FLY.ControlLibrary;assembly=FLY.ControlLibrary"
        xmlns:local="clr-namespace:ThickTcpUiInWindow"
        Title="Window_Password" mc:Ignorable="d" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"  
                 
        Loaded="Window_Loaded" Unloaded="Window_Unloaded" SizeToContent="WidthAndHeight">
    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="pack://application:,,,/FLY.ControlLibrary;component/Themes/Dictionary_MyStyle.xaml"/>
                <!--<ResourceDictionary Source="pack://application:,,,/ThickTcpUiInWindow;component/Culture/StringResource.zh-CN.xaml"/>-->
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Window.Resources>

            <Grid TextBlock.FontSize="24" TextBlock.FontStyle="Normal" >
                <StackPanel Orientation="Vertical" Margin="5,20">
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="auto"/>
                    <ColumnDefinition />
                </Grid.ColumnDefinitions>
                <StackPanel Orientation="Vertical" Margin="5" >
                    <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldHeaderEditable}" Text="{DynamicResource strKeep5min}" />
                    <ToggleButton Name="togglebutton_keep5min"  Style="{StaticResource ToggleButtonStyle1}" IsChecked="{Binding Keep5Min}" HorizontalAlignment="Left"/>
                </StackPanel>
                <StackPanel Orientation="Vertical" Margin="5" Grid.Column="1">
                    <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldHeaderEditable}" Text="{DynamicResource strPleaseIntoPW}" />
                    <StackPanel Orientation="Horizontal">
                        <TextBox Style="{StaticResource ResourceKey=TextBoxStyle_FieldContent}" Text="{Binding PSK}" Tag="Full" MinWidth="300"/>
                    </StackPanel>
                </StackPanel>

            </Grid>




            <Button Style="{StaticResource ButtonStyle2}" Content="{DynamicResource strOK}"  Width="Auto" Margin="5" Click="button_apply_Click" />
                </StackPanel>
            </Grid>

</flyctrllib:WindowBigClose>
