<Window x:Class="ThickTcpUiInWindow.Window_PasswordEdit"
        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" ResizeMode="NoResize" mc:Ignorable="d" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"  
                 Background="{x:Null}" WindowStyle="None" AllowsTransparency="True" 
        Loaded="Window_Loaded" Unloaded="Window_Unloaded"
        MouseLeftButtonDown="Grid_MouseDown" SizeToContent="WidthAndHeight">
    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="pack://application:,,,/FLY.ControlLibrary;component/Themes/Dictionary_MyStyle.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Window.Resources>
    <Grid>

        <Border CornerRadius="3" BorderThickness="5" BorderBrush="Black" Background="White" >
            <Grid TextBlock.FontSize="24" TextBlock.FontStyle="Normal" >
                <StackPanel Orientation="Vertical" Margin="5,20">
                    <StackPanel Orientation="Vertical" Margin="5">
                        <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldHeader}" Text="密码修改" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="44" />
                    </StackPanel>
                    <StackPanel Orientation="Vertical" Margin="5">
                        <StackPanel Orientation="Horizontal">
                            <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldHeaderEditable}" Text="密码级别" />
                            <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldContent_mm}" Text="(数值越大，权限越大)" />
                        </StackPanel>
                        <ComboBox ItemsSource="{Binding Levels}"  SelectedItem="{Binding Level}"/>
                    </StackPanel>
                    <StackPanel Orientation="Vertical" Margin="5">
                        <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldHeaderEditable}" Text="请输入密码：" />
                        <StackPanel Orientation="Horizontal">
                            <TextBox Style="{StaticResource ResourceKey=TextBoxStyle_FieldContent}" Text="{Binding PSK}" Tag="Full" MinWidth="400"/>
                        </StackPanel>
                    </StackPanel>
                    <StackPanel Orientation="Vertical" Margin="5">
                        <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldHeaderEditable}" Text="再次输入密码：" />
                        <StackPanel Orientation="Horizontal">
                            <TextBox Style="{StaticResource ResourceKey=TextBoxStyle_FieldContent}" Text="{Binding PSK2}" Tag="Full" MinWidth="400"/>
                        </StackPanel>
                    </StackPanel>
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition/>
                            <ColumnDefinition/>
                        </Grid.ColumnDefinitions>
                        <Button Style="{StaticResource ButtonStyle2}" Content="确定"  Width="200" Margin="5" Click="button_apply_Click" Background="#FF127300" />
                        <Button Grid.Column="1" Style="{StaticResource ButtonStyle2}" Content="取消"  Width="200" Margin="5" Click="button_close_Click" Background="#FFEC0000" />
                    </Grid>


                </StackPanel>
            </Grid>
        </Border>
    </Grid>
</Window>