ExtractDialog.xaml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <UserControl
  2. x:Class="PDF_Office.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_Office.CustomControl"
  6. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  7. xmlns:local="clr-namespace:PDF_Office.Views.Dialog.PageEditDialogs"
  8. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  9. xmlns:pageeditdialogs="clr-namespace:PDF_Office.ViewModels.Dialog.PageEditDialogs"
  10. xmlns:prism="http://prismlibrary.com/"
  11. Width="320"
  12. Height="208"
  13. d:DataContext="{d:DesignInstance Type=pageeditdialogs:ExtractDialogViewModel}"
  14. d:DesignHeight="450"
  15. d:DesignWidth="800"
  16. prism:Dialog.WindowStyle="{StaticResource DialogWindowStyle}"
  17. prism:ViewModelLocator.AutoWireViewModel="True"
  18. mc:Ignorable="d">
  19. <cus:DialogContent Header="提取页面">
  20. <cus:DialogContent.Content>
  21. <StackPanel
  22. Grid.Row="1"
  23. Margin="16,0"
  24. HorizontalAlignment="Center">
  25. <CheckBox
  26. Margin="0,18"
  27. VerticalAlignment="Center"
  28. Content="每个页面作为单独页面"
  29. FontSize="14"
  30. IsChecked="{Binding Model.IsEveryPageToFile, Mode=TwoWay}" />
  31. <CheckBox
  32. Content="提取后删除页面"
  33. FontSize="14"
  34. IsChecked="{Binding Model.IsDeleteAfterExtract, Mode=TwoWay}" />
  35. </StackPanel>
  36. </cus:DialogContent.Content>
  37. <cus:DialogContent.BottmBar>
  38. <Grid>
  39. <Button
  40. Width="98"
  41. Height="32"
  42. Margin="0,0,124,0"
  43. HorizontalAlignment="Right"
  44. Command="{Binding ExtractCommnad}"
  45. Content="提取" />
  46. <Button
  47. Width="98"
  48. Height="32"
  49. Margin="16,0"
  50. HorizontalAlignment="Right"
  51. Command="{Binding CancelCommand}"
  52. Content="取消" />
  53. </Grid>
  54. </cus:DialogContent.BottmBar>
  55. </cus:DialogContent>
  56. </UserControl>