WdPassword.xaml 2.84 KB
Newer Older
潘栩锋's avatar
潘栩锋 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
<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/Dictionary_MyStyle.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Window.Resources>

            <Grid TextBlock.FontSize="24" TextBlock.FontStyle="Normal" >
                <StackPanel Margin="5,20">
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="auto"/>
                    <ColumnDefinition />
                </Grid.ColumnDefinitions>
                <StackPanel Margin="{StaticResource ControlMargin}" >
                    <TextBlock Style="{StaticResource TextBlockStyle_FieldHeaderEditable}" Text="保持5分钟" />
                    <ToggleButton Name="togglebutton_keep5min"  Style="{StaticResource ToggleButtonStyle1}" IsChecked="{Binding Keep5Min}" HorizontalAlignment="Left"/>
                </StackPanel>
                <StackPanel Margin="{StaticResource ControlMargin}" Grid.Column="1">
                    <TextBlock Style="{StaticResource TextBlockStyle_FieldHeaderEditable}" Text="请输入密码" />
                    <StackPanel Orientation="Horizontal">
                       <PasswordBox x:Name="passwordbox" Margin="{StaticResource ControlMargin}"
                             Controls:TextBoxHelper.Watermark="请输入密码"
                             Style="{StaticResource Win8MetroPasswordBox}" MinWidth="300"/>
                        <Button Style="{StaticResource ButtonStyle_icon}" Click="ButtonOSK_Click" >
                            <iconPacks:PackIconMaterial Kind="Keyboard" />
                        </Button>
                    </StackPanel>
                </StackPanel>

            </Grid>




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

</flyctrllib:WindowBigClose>