ConverterCSVDialog.xaml 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <UserControl x:Class="PDF_Office.Views.Dialog.ConverterDialogs.ConverterCSVDialog"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:cus="clr-namespace:PDF_Office.CustomControl"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:PDF_Office.Views.Dialog.PageEditDialogs"
  7. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  8. xmlns:pageeditdialogs="clr-namespace:PDF_Office.ViewModels.Dialog.PageEditDialogs"
  9. xmlns:prism="http://prismlibrary.com/"
  10. Width="529"
  11. Height="416"
  12. d:DataContext="{d:DesignInstance Type=pageeditdialogs:ExtractDialogViewModel}"
  13. d:DesignHeight="416"
  14. d:DesignWidth="529"
  15. prism:Dialog.WindowStyle="{StaticResource DialogWindowStyle}"
  16. prism:ViewModelLocator.AutoWireViewModel="True"
  17. mc:Ignorable="d">
  18. <cus:DialogContent Header="PDF转CSV">
  19. <cus:DialogContent.Content>
  20. <Grid Grid.Row="1">
  21. <Grid.ColumnDefinitions>
  22. <ColumnDefinition Width="212"/>
  23. <ColumnDefinition Width="*"/>
  24. </Grid.ColumnDefinitions>
  25. <Grid Grid.Column="0">
  26. <cus:PageTurningPreview x:Name="ConverterPreview" Loaded="ConverterPreview_Loaded"></cus:PageTurningPreview>
  27. </Grid>
  28. <Grid Grid.Column="1">
  29. <StackPanel Margin="18,16,0,0">
  30. <StackPanel>
  31. <RadioButton Name="ForEachPageRadioBtn" Command="{Binding RadioButtonCommand}" CommandParameter="{Binding ElementName=ForEachPageRadioBtn,Path=Name}">
  32. <TextBlock Text="将每个页面转换为一个单独的文档"/>
  33. </RadioButton>
  34. <RadioButton Margin="0,6,0,0" Name="OnlyTableRadioBtn" Command="{Binding RadioButtonCommand}" CommandParameter="{Binding ElementName=ForTheDocRadioBtn,Path=Name}">
  35. <TextBlock Text="只提取表格"/>
  36. </RadioButton>
  37. </StackPanel>
  38. <StackPanel Orientation="Vertical" Margin="0,14,0,0">
  39. <TextBlock Text="页面范围" Height="20" Width="48" HorizontalAlignment="Left"/>
  40. <cus:WritableComboBox x:Name="PageRangeComboBox" Margin="0,4,0,0" Width="228" Height="28.55" HorizontalAlignment="Left" IsCurrentPage="True" Text="{Binding PageRangeText, Mode=TwoWay}" SelectedIndex="{Binding PageRangeSelectIndex, Mode=TwoWay}" Loaded="PageRangeComboBox_Loaded">
  41. </cus:WritableComboBox>
  42. </StackPanel>
  43. </StackPanel>
  44. </Grid>
  45. </Grid>
  46. </cus:DialogContent.Content>
  47. <cus:DialogContent.BottmBar>
  48. <Grid>
  49. <Button
  50. Width="98"
  51. Height="32"
  52. Margin="0,0,124,0"
  53. HorizontalAlignment="Right"
  54. Content="取消"
  55. Command="{Binding CancelCommand}"/>
  56. <Button
  57. Width="98"
  58. Height="32"
  59. Margin="16,0"
  60. HorizontalAlignment="Right"
  61. Content="转换"
  62. Command = "{Binding ConverterCommnad}"/>
  63. </Grid>
  64. </cus:DialogContent.BottmBar>
  65. </cus:DialogContent>
  66. </UserControl>