UserPasswordControl.xaml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <UserControl x:Class="Compdfkit_Tools.PDFControl.UserPasswordControl"
  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"
  7. xmlns:common="clr-namespace:Compdfkit_Tools.Common"
  8. mc:Ignorable="d"
  9. Height="130" Width="368">
  10. <Grid>
  11. <Grid.ColumnDefinitions>
  12. <ColumnDefinition Width="363*"/>
  13. <ColumnDefinition Width="5*"/>
  14. </Grid.ColumnDefinitions>
  15. <Grid Background="White" Margin="20,0,0,0" Panel.ZIndex="1" Height="20" HorizontalAlignment="Left" VerticalAlignment="Top">
  16. <TextBlock Foreground="#001A4E" Text="Open the Documentn" FontWeight="Bold" FontSize="16"></TextBlock>
  17. </Grid>
  18. <Border Margin="12,10,7,12" BorderBrush="#33000000" BorderThickness="1">
  19. <Grid Margin="20,0,20,15">
  20. <Grid.RowDefinitions>
  21. <RowDefinition Height="*"></RowDefinition>
  22. <RowDefinition Height="Auto"></RowDefinition>
  23. </Grid.RowDefinitions>
  24. <StackPanel Orientation="Horizontal">
  25. <CheckBox Width="20" Height="20" Margin="0,0,0,0"></CheckBox>
  26. <TextBlock Height="20" FontFamily="Segoe UI" FontSize="14" Text="Require a password to open the document"></TextBlock>
  27. </StackPanel>
  28. <StackPanel Orientation="Horizontal" Grid.Row="1" Margin="20,0,0,-5">
  29. <TextBlock Height="25" FontFamily="Segoe UI" FontSize="14" Text="Open Password"/>
  30. <common:PasswordBoxControl Margin="10,0,0,0" Watermark="Enter Password" Height="41" Width="170"></common:PasswordBoxControl>
  31. </StackPanel>
  32. </Grid>
  33. </Border>
  34. </Grid>
  35. </UserControl>