ExtractDialog.xaml 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <UserControl
  2. x:Class="PDF_Master.Views.Dialog.PageEditDialogs.ExtractDialog"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:cus="clr-namespace:PDF_Master.CustomControl"
  6. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  7. xmlns:local="clr-namespace:PDF_Master.Views.Dialog.PageEditDialogs"
  8. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  9. xmlns:pageeditdialogs="clr-namespace:PDF_Master.ViewModels.Dialog.PageEditDialogs"
  10. xmlns:prism="http://prismlibrary.com/"
  11. xmlns:mainpage="clr-namespace:PDF_Master.Strings.MainPage"
  12. Width="432"
  13. Height="166"
  14. d:DataContext="{d:DesignInstance Type=pageeditdialogs:ExtractDialogViewModel}"
  15. d:DesignHeight="166"
  16. d:DesignWidth="432"
  17. prism:Dialog.WindowStyle="{StaticResource DialogWindowStyle}"
  18. prism:ViewModelLocator.AutoWireViewModel="True"
  19. mc:Ignorable="d">
  20. <cus:DialogContent Header="{ x:Static mainpage:MainPage.PageEdit_ExtractPage}">
  21. <cus:DialogContent.Content>
  22. <StackPanel
  23. Height="Auto"
  24. Margin="16,0,0,0"
  25. HorizontalAlignment="Left">
  26. <CheckBox
  27. VerticalAlignment="Center"
  28. Content="{ x:Static mainpage:MainPage.PageEdit_ExtractTip}"
  29. FontFamily="Segoe UI"
  30. FontSize="14"
  31. IsChecked="{Binding Model.IsEveryPageToFile, Mode=TwoWay}" />
  32. <CheckBox
  33. Margin="0,8"
  34. Content="{ x:Static mainpage:MainPage.PageEdit_ExtractDel}"
  35. FontFamily="Segoe UI"
  36. FontSize="14"
  37. IsEnabled="{Binding IsEnabledDeleteAfterExtract}"
  38. IsChecked="{Binding Model.IsDeleteAfterExtract, Mode=TwoWay}" />
  39. </StackPanel>
  40. </cus:DialogContent.Content>
  41. <cus:DialogContent.BottmBar>
  42. <Grid>
  43. <Button
  44. Width="98"
  45. Height="32"
  46. Margin="0,0,124,0"
  47. HorizontalAlignment="Right"
  48. Command="{Binding ExtractCommnad}"
  49. Content="{ x:Static mainpage:MainPage.PageEdit_Extract}"
  50. Style="{StaticResource Btn.cta}" />
  51. <Button
  52. Width="98"
  53. Height="32"
  54. Margin="16,0"
  55. HorizontalAlignment="Right"
  56. Command="{Binding CancelCommand}"
  57. Content="{ x:Static mainpage:MainPage.PageEdit_Cancel}"
  58. Style="{StaticResource btn.sec}" />
  59. </Grid>
  60. </cus:DialogContent.BottmBar>
  61. </cus:DialogContent>
  62. </UserControl>