<UserControl x:Class="PDF_Office.Views.Dialog.ToolsDialogs.SaftyDialogs.CheckPasswordDialog"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:prism="http://prismlibrary.com/"             
             prism:ViewModelLocator.AutoWireViewModel="True">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Name="HeadRow" Height="95" />
            <RowDefinition Height="50"/>
        </Grid.RowDefinitions>
        <StackPanel Grid.Row="0" Orientation="Vertical" VerticalAlignment="Center" Margin="20" Width="320">
            <TextBlock  Text="该文件已开启权限保护，请输入密码" FontSize="14" Margin="0,0,0,15"/>
            <PasswordBox Name="ForCheckPasswordBox" PasswordChanged="ForCheckPasswordBox_PasswordChanged"></PasswordBox>
        </StackPanel>
        <StackPanel Grid.Row="1"  Orientation="Horizontal" HorizontalAlignment="Right" >
            <Button Background="WhiteSmoke" Width="100" Height="25" Margin="40,0,20,0" Command="{Binding  DelegateConfirmCheckPasswordCommand}">
                <Border>
                    <TextBlock Text="确定" ></TextBlock>
                </Border>
            </Button>
            <Button Background="WhiteSmoke" Width="100" Height="25" Margin="0,0,10,0" Command="{Binding DelegateCancelCheckPasswordCommand}">
                <Border>
                    <TextBlock Text="取消" ></TextBlock>
                </Border>
            </Button>
        </StackPanel>
    </Grid>
</UserControl>
