CheckPasswordDialog.xaml 1.6 KB

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