PasswordDialog.xaml 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <UserControl x:Class="Compdfkit_Tools.Common.PasswordDialog"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:Compdfkit_Tools.Common"
  7. mc:Ignorable="d"
  8. d:DesignHeight="226" d:DesignWidth="534" BorderBrush="Black" BorderThickness="1">
  9. <Grid Width="534" Height="226" HorizontalAlignment="Center" VerticalAlignment="Center" Background="White">
  10. <Grid.ColumnDefinitions>
  11. <ColumnDefinition Width="*"></ColumnDefinition>
  12. <ColumnDefinition Width="*"></ColumnDefinition>
  13. </Grid.ColumnDefinitions>
  14. <Grid.RowDefinitions>
  15. <RowDefinition Height="auto"></RowDefinition>
  16. <RowDefinition Height="*"></RowDefinition>
  17. <RowDefinition Height="auto"></RowDefinition>
  18. </Grid.RowDefinitions>
  19. <TextBlock Height="20" FontSize="14" LineHeight="16" Margin="12,6,0,0" HorizontalAlignment="Left">Password</TextBlock>
  20. <Button Grid.Column="1" Width="16" Height="16" HorizontalAlignment="Right" Margin="0,8,8,0" BorderThickness="0" Click="PasswordDialogClose_Click">
  21. <Button.Content>
  22. <Path Fill="Black">
  23. <Path.Data>
  24. M6.69495 6L11.5 1.19495L10.805 0.5L6 5.30505L1.19495 0.5L0.5 1.19495L5.30505 6L0.5 10.805L1.19495 11.5L6 6.69495L10.805 11.5L11.5 10.805L6.69495 6Z
  25. </Path.Data>
  26. </Path>
  27. </Button.Content>
  28. </Button>
  29. <Grid Grid.Row="1" Margin="0,36,0,0" Grid.ColumnSpan="2">
  30. <Grid.ColumnDefinitions>
  31. <ColumnDefinition Width="80"></ColumnDefinition>
  32. <ColumnDefinition Width="*"></ColumnDefinition>
  33. </Grid.ColumnDefinitions>
  34. <Grid.RowDefinitions>
  35. <RowDefinition Height="auto"></RowDefinition>
  36. <RowDefinition Height="auto"></RowDefinition>
  37. </Grid.RowDefinitions>
  38. <Image Width="32" Height="32" Source="../../Resource/warn.png"/>
  39. <TextBlock FontSize="14" Foreground="#43474D" Grid.Column="1" Name="FileEncryptText" VerticalAlignment="Center"></TextBlock>
  40. <StackPanel Orientation="Horizontal" Grid.Column="1" Grid.Row="1" Height="62" Margin="0,22,0,0" >
  41. <TextBlock FontSize="14" Foreground="#43474D" Margin="0,-30,0,0" VerticalAlignment="Center">Please Enter the Password:</TextBlock>
  42. <StackPanel Margin="8,0,0,0">
  43. <PasswordBox Name="PasswordBoxText" Padding="5,0,0,0" Height="32" Width="185" VerticalContentAlignment="Center" VerticalAlignment="Center"></PasswordBox>
  44. <TextBlock Name="ErrorTipsText" Foreground="Red" Margin="0,4,0,0" Visibility="Collapsed"></TextBlock>
  45. </StackPanel>
  46. </StackPanel>
  47. </Grid>
  48. <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Grid.Row="2" Margin="0,0,24,12" Grid.ColumnSpan="2">
  49. <Button Width="112" Height="32" Click="PasswordDialogConfirm_Click">OK</Button>
  50. <Button Width="112" Height="32" Margin="8,0,0,0" Click="PasswordDialogCancel_Click">Cancel</Button>
  51. </StackPanel>
  52. </Grid>
  53. </UserControl>