<flyctrllib:WindowBigClose x:Class="FLY.Thick.Base.UI.WdPassword"
                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:FLY.Thick.Base.UI"
        mc:Ignorable="d" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"  
        xmlns:Controls="http://metro.mahapps.com/winfx/xaml/controls"
                           xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks"
                           Loaded="Window_Loaded" SizeToContent="WidthAndHeight">
    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="pack://application:,,,/FLY.ControlLibrary;component/Themes/Styles.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Window.Resources>
    <Grid TextBlock.FontSize="24" TextBlock.FontStyle="Normal" >
        <StackPanel Margin="5,20">
            <TextBlock x:Name="tbMsg" Margin="5,5,5,30" TextWrapping="Wrap" Text="我是提示信息，平时被隐藏！！！" MaxWidth="450" />
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="auto"/>
                    <ColumnDefinition />
                </Grid.ColumnDefinitions>
                <StackPanel Margin="{StaticResource ControlMargin}" >
                    <TextBlock Style="{StaticResource Styles.Text.FieldHeader.Editable}" Text="{StaticResource str.WdPassword.Keep5Min}" />
                    <ToggleButton Name="togglebutton_keep5min"  Style="{StaticResource Styles.ToggleButton.YESNO}" IsChecked="{Binding Keep5Min}" HorizontalAlignment="Left"/>
                </StackPanel>
                <StackPanel Margin="{StaticResource ControlMargin}" Grid.Column="1">
                    <TextBlock Style="{StaticResource Styles.Text.FieldHeader.Editable}" Text="{StaticResource str.WdPassword.PleaseInputPW}" />
                    <StackPanel Orientation="Horizontal">
                        <PasswordBox x:Name="passwordbox" Margin="{StaticResource ControlMargin}"
                             Controls:TextBoxHelper.Watermark="{StaticResource str.WdPassword.PleaseInputPW}"
                             Style="{StaticResource  MahApps.Styles.PasswordBox.Win8}" MinWidth="300"/>
                        <Button Style="{StaticResource Styles.Button.Icon}" Click="ButtonOSK_Click" >
                            <iconPacks:PackIconMaterial Kind="Keyboard" />
                        </Button>
                    </StackPanel>
                </StackPanel>

            </Grid>
            <Button Style="{StaticResource ButtonStyle2}" Content="{StaticResource str.WdPassword.OK}"  Width="Auto" Margin="{StaticResource ControlMargin}" Click="button_apply_Click" />
        </StackPanel>
    </Grid>

</flyctrllib:WindowBigClose>
