EncryptionDialog.xaml 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <Window x:Class="Compdfkit_Tools.PDFControl.EncryptionDialog"
  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.PDFControl"
  7. xmlns:common="clr-namespace:Compdfkit_Tools.Common"
  8. mc:Ignorable="d"
  9. ResizeMode="NoResize"
  10. WindowStartupLocation="CenterScreen"
  11. ShowInTaskbar="False"
  12. Title="Batch Encryption" Height="504" Width="1052">
  13. <Window.Resources>
  14. <ResourceDictionary>
  15. <common:AndMultiBoolValueConverter x:Key="AndMultiBoolValueConverter"></common:AndMultiBoolValueConverter>
  16. <common:SecurityResourceConverter x:Key="SecurityResourceConverter"/>
  17. </ResourceDictionary>
  18. </Window.Resources>
  19. <Grid>
  20. <Grid>
  21. <Grid.RowDefinitions>
  22. <RowDefinition Height="Auto"></RowDefinition>
  23. <RowDefinition Height="Auto"></RowDefinition>
  24. </Grid.RowDefinitions>
  25. <Grid.ColumnDefinitions>
  26. <ColumnDefinition Width="7*"></ColumnDefinition>
  27. <ColumnDefinition Width="4*"/>
  28. </Grid.ColumnDefinitions>
  29. <local:FileGridListControl x:Name="FileListControl"/>
  30. <local:SetEncryptionControl Grid.Row="0" Grid.Column="1" Margin="0,52,0,0" x:Name="SetEncryptionControl"/>
  31. <common:CustomProgressBarControl Grid.Row="1" Margin="10,0,10,0" ProgressValue="{Binding CurrentFileNum}"
  32. ProgressMaxValue="{Binding ElementName=FileListControl,Path=FileNumText}" ></common:CustomProgressBarControl>
  33. <StackPanel Grid.Column="1" Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,10,20,0">
  34. <Button Height="32" Width="112" Content="{Binding Converter={StaticResource SecurityResourceConverter}, ConverterParameter=Button_Encrypt}" Click="ButtonEncrypt_Click">
  35. <Button.IsEnabled>
  36. <MultiBinding Converter="{StaticResource AndMultiBoolValueConverter}">
  37. <Binding ElementName="FileListControl" Path="IsEnsure"></Binding>
  38. <Binding ElementName="SetEncryptionControl" Path="IsSettingValid"></Binding>
  39. </MultiBinding>
  40. </Button.IsEnabled>
  41. </Button>
  42. <Button Height="32" Width="112" Content="{Binding Converter={StaticResource SecurityResourceConverter}, ConverterParameter=Button_Cancel}" Margin="10,0,0,0" Click="ButtonCancel_Click"></Button>
  43. </StackPanel>
  44. </Grid>
  45. </Grid>
  46. </Window>