ConverterImgDialog.xaml 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <UserControl x:Class="PDF_Office.Views.Dialog.ConverterDialogs.ConverterImgDialog"
  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="480"
  11. Height="416"
  12. d:DataContext="{d:DesignInstance Type=pageeditdialogs:ExtractDialogViewModel}"
  13. d:DesignHeight="416"
  14. d:DesignWidth="480"
  15. prism:Dialog.WindowStyle="{StaticResource DialogWindowStyle}"
  16. prism:ViewModelLocator.AutoWireViewModel="True"
  17. mc:Ignorable="d">
  18. <cus:DialogContent Header="PDF转图片">
  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. <TextBlock Text="文件类型" Height="20" Width="48" HorizontalAlignment="Left" />
  32. <ComboBox Name="ImageTypeComboBox" Height="32" Width="228" HorizontalAlignment="Left" Margin="0,8,0,0" ItemsSource="{Binding ImageTypeFamily}" SelectedIndex="0" SelectionChanged="ImageTypeComboBox_SelectionChanged"></ComboBox>
  33. <ComboBox Name="ImageDPIComboBox" Height="32" Width="228" HorizontalAlignment="Left" Margin="0,8,0,0" ItemsSource="{Binding ImageDPIFamily}" SelectedIndex="0" SelectionChanged="ImageDPIComboBox_SelectionChanged"></ComboBox>
  34. </StackPanel>
  35. <StackPanel Margin="0,16,0,0">
  36. <TextBlock Text="页面范围" Height="20" Width="48" HorizontalAlignment="Left"/>
  37. <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">
  38. </cus:WritableComboBox>
  39. </StackPanel>
  40. </StackPanel>
  41. </Grid>
  42. </Grid>
  43. </cus:DialogContent.Content>
  44. <cus:DialogContent.BottmBar>
  45. <Grid>
  46. <Button
  47. Width="98"
  48. Height="32"
  49. Margin="0,0,124,0"
  50. HorizontalAlignment="Right"
  51. Content="取消"
  52. Command="{Binding CancelCommand}"/>
  53. <Button
  54. Width="98"
  55. Height="32"
  56. Margin="16,0"
  57. HorizontalAlignment="Right"
  58. Content="转换"
  59. Command = "{Binding ConverterCommnad}"/>
  60. </Grid>
  61. </cus:DialogContent.BottmBar>
  62. </cus:DialogContent>
  63. </UserControl>