ConverterPPTDialog.xaml 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <UserControl x:Class="PDF_Office.Views.Dialog.ConverterDialogs.ConverterPPTDialog"
  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:i="http://schemas.microsoft.com/xaml/behaviors"
  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="480"
  12. Height="416"
  13. d:DataContext="{d:DesignInstance Type=pageeditdialogs:ExtractDialogViewModel}"
  14. d:DesignHeight="416"
  15. d:DesignWidth="480"
  16. prism:Dialog.WindowStyle="{StaticResource DialogWindowStyle}"
  17. prism:ViewModelLocator.AutoWireViewModel="True"
  18. mc:Ignorable="d">
  19. <cus:DialogContent Header="PDF转PPT">
  20. <cus:DialogContent.Content>
  21. <Grid Grid.Row="1">
  22. <Grid.ColumnDefinitions>
  23. <ColumnDefinition Width="212"/>
  24. <ColumnDefinition Width="*"/>
  25. </Grid.ColumnDefinitions>
  26. <Grid Grid.Column="0">
  27. <cus:PageTurningPreview x:Name="ConverterPreview" Loaded="ConverterPreview_Loaded"></cus:PageTurningPreview>
  28. </Grid>
  29. <Grid Grid.Column="1">
  30. <StackPanel Orientation="Vertical" Margin="18,16,0,0">
  31. <StackPanel Orientation="Vertical">
  32. <TextBlock Text="文本识别设置:" HorizontalAlignment="Left" Width="84" Height="20"/>
  33. <CheckBox Name="OCRCheckBox" Margin="0,5,0,0">
  34. <TextBlock Text="在需要时识别文本"/>
  35. </CheckBox>
  36. <ComboBox IsEnabled="{Binding ElementName=OCRCheckBox,Path=IsChecked}" Margin="0,6,0,0" Width="228" Height="28.55" HorizontalAlignment="Left">
  37. </ComboBox>
  38. </StackPanel>
  39. <StackPanel Orientation="Vertical" Margin="0,14,0,0">
  40. <TextBlock Text="页面范围" Height="20" Width="48" HorizontalAlignment="Left"/>
  41. <cus:WritableComboBox x:Name="PageRangeComboBox" Margin="0,4,0,0" Width="228" Height="32" HorizontalAlignment="Left" IsCurrentPage="True" Text="{Binding PageRangeText, Mode=TwoWay}" SelectedIndex="{Binding PageRangeSelectIndex, Mode=TwoWay}" Loaded="PageRangeComboBox_Loaded">
  42. <i:Interaction.Triggers>
  43. <i:EventTrigger EventName="SelectionChanged">
  44. <i:InvokeCommandAction Command="{Binding CmbPageSelectionChanged}" CommandParameter="{Binding ElementName=ConverterPreview}" />
  45. </i:EventTrigger>
  46. <i:EventTrigger EventName="TextChanged">
  47. <i:InvokeCommandAction Command="{Binding CmbPageTextChanged}" CommandParameter="{Binding ElementName=ConverterPreview}" />
  48. </i:EventTrigger>
  49. </i:Interaction.Triggers>
  50. </cus:WritableComboBox>
  51. </StackPanel>
  52. </StackPanel>
  53. </Grid>
  54. </Grid>
  55. </cus:DialogContent.Content>
  56. <cus:DialogContent.BottmBar>
  57. <Grid>
  58. <Button
  59. Width="98"
  60. Height="32"
  61. Margin="0,0,124,0"
  62. HorizontalAlignment="Right"
  63. Content="取消"
  64. Command="{Binding CancelCommand}"/>
  65. <Button
  66. Width="98"
  67. Height="32"
  68. Margin="16,0"
  69. HorizontalAlignment="Right"
  70. Content="转换"
  71. Command = "{Binding ConverterCommnad}"/>
  72. </Grid>
  73. </cus:DialogContent.BottmBar>
  74. </cus:DialogContent>
  75. </UserControl>