DecryptionDialog.xaml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <Window x:Class="Compdfkit_Tools.PDFControl.DecryptionDialog"
  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. Height="600" Width="522">
  13. <Window.Resources>
  14. <ResourceDictionary>
  15. <common:SecurityResourceConverter x:Key="SecurityResourceConverter"/>
  16. </ResourceDictionary>
  17. </Window.Resources>
  18. <Grid>
  19. <Grid.RowDefinitions>
  20. <RowDefinition Height="Auto"/>
  21. <RowDefinition Height="Auto"/>
  22. <RowDefinition Height="Auto"/>
  23. </Grid.RowDefinitions>
  24. <local:FileGridListControl x:Name="FileListControl" Width="496" Height="420"/>
  25. <StackPanel Grid.Row="1" Margin="20,20,20,0">
  26. <TextBlock FontFamily="Microsoft YaHei" FontSize="12" TextWrapping="Wrap"
  27. Text="{Binding Converter={StaticResource SecurityResourceConverter}, ConverterParameter=Tip_EasyUse}"></TextBlock>
  28. <TextBlock FontFamily="Microsoft YaHei" FontSize="12" TextWrapping="Wrap" Margin="0,10,0,10"
  29. Text="{Binding Converter={StaticResource SecurityResourceConverter}, ConverterParameter=Tip_Require}"></TextBlock>
  30. </StackPanel>
  31. <StackPanel Grid.Row="2" Orientation="Horizontal" HorizontalAlignment="Right">
  32. <Button Width="112" Height="32" FontFamily="Microsoft YaHei" FontSize="14" Content="{Binding Converter={StaticResource SecurityResourceConverter}, ConverterParameter=Button_Decrypt}" Click="Remove_Click" IsEnabled="{Binding ElementName=FileListControl,Path=IsEnsure}"></Button>
  33. <Button Width="112" Height="32" FontFamily="Microsoft YaHei" FontSize="14" Content="{Binding Converter={StaticResource SecurityResourceConverter}, ConverterParameter=Button_Cancel}" Margin="10,0,10,0" Click="Cancel_Click"></Button>
  34. </StackPanel>
  35. </Grid>
  36. </Window>