ConverterBarContent.xaml 5.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <UserControl x:Class="PDF_Office.Views.Tools.ConverterBarContent"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:prism="http://prismlibrary.com/"
  5. prism:ViewModelLocator.AutoWireViewModel="True">
  6. <UserControl.Resources>
  7. <ResourceDictionary>
  8. <ResourceDictionary.MergedDictionaries>
  9. <ResourceDictionary Source="../../Styles/CustomBtnStyle.xaml"/>
  10. <ResourceDictionary Source="../../Styles/MenuStyle.xaml"/>
  11. </ResourceDictionary.MergedDictionaries>
  12. </ResourceDictionary>
  13. </UserControl.Resources>
  14. <Grid>
  15. <Border x:Name="ToolsBorder" BorderBrush="#1A000000" BorderThickness="0,1,0,1" Height="40">
  16. <WrapPanel HorizontalAlignment="Center" Height="40">
  17. <Button Name="ConverterWordBtn" Style="{StaticResource InsideBarBtnStyle }" Command="{Binding ToConverterCommand}" CommandParameter="{Binding ElementName=ConverterWordBtn}">
  18. <StackPanel Orientation="Horizontal" Margin="12 0 12 0">
  19. <StackPanel Margin="0,0,8,0">
  20. <Border Height="30" Width="30" Background="LightSeaGreen" ></Border>
  21. </StackPanel >
  22. <TextBlock Text="PDF转Word" VerticalAlignment="Center"></TextBlock>
  23. </StackPanel>
  24. </Button>
  25. <Button Name="ConverterExcelBtn" Style="{StaticResource InsideBarBtnStyle }" Command="{Binding ToConverterCommand}" CommandParameter="{Binding ElementName=ConverterExcelBtn}">
  26. <StackPanel Orientation="Horizontal" Margin="12 0 12 0">
  27. <StackPanel Margin="0,0,8,0">
  28. <Border Height="30" Width="30" Background="LightSeaGreen" ></Border>
  29. </StackPanel >
  30. <TextBlock Text="PDF转Excel" VerticalAlignment="Center"></TextBlock>
  31. </StackPanel>
  32. </Button>
  33. <Button Name="ConverterPPTBtn" Style="{StaticResource InsideBarBtnStyle }" Command="{Binding ToConverterCommand}" CommandParameter="{Binding ElementName=ConverterPPTBtn}">
  34. <StackPanel Orientation="Horizontal" Margin="12 0 12 0">
  35. <StackPanel Margin="0,0,8,0">
  36. <Border Height="30" Width="30" Background="LightSeaGreen" ></Border>
  37. </StackPanel >
  38. <TextBlock Text="PDF转PPT" VerticalAlignment="Center"></TextBlock>
  39. </StackPanel>
  40. </Button>
  41. <Button Name="ConverterRTFBtn" Style="{StaticResource InsideBarBtnStyle }" Command="{Binding ToConverterCommand}" CommandParameter="{Binding ElementName=ConverterRTFBtn}">
  42. <StackPanel Orientation="Horizontal" Margin="12 0 12 0">
  43. <StackPanel Margin="0,0,8,0">
  44. <Border Height="30" Width="30" Background="LightSeaGreen" ></Border>
  45. </StackPanel >
  46. <TextBlock Text="PDF转RTF" VerticalAlignment="Center"></TextBlock>
  47. </StackPanel>
  48. </Button>
  49. <Button Name="ConverterCSVBtn" Style="{StaticResource InsideBarBtnStyle }" Command="{Binding ToConverterCommand}" CommandParameter="{Binding ElementName=ConverterCSVBtn}">
  50. <StackPanel Orientation="Horizontal" Margin="12 0 12 0">
  51. <StackPanel Margin="0,0,8,0">
  52. <Border Height="30" Width="30" Background="LightSeaGreen" ></Border>
  53. </StackPanel >
  54. <TextBlock Text="PDF转CSV" VerticalAlignment="Center"></TextBlock>
  55. </StackPanel>
  56. </Button>
  57. <Button Name="ConverterHTMLBtn" Style="{StaticResource InsideBarBtnStyle }" Command="{Binding ToConverterCommand}" CommandParameter="{Binding ElementName=ConverterHTMLBtn}">
  58. <StackPanel Orientation="Horizontal" Margin="12 0 12 0">
  59. <StackPanel Margin="0,0,8,0">
  60. <Border Height="30" Width="30" Background="LightSeaGreen" ></Border>
  61. </StackPanel >
  62. <TextBlock Text="PDF转HTML" VerticalAlignment="Center"></TextBlock>
  63. </StackPanel>
  64. </Button>
  65. <Button Name="ConverterTextBtn" Style="{StaticResource InsideBarBtnStyle }" Command="{Binding ToConverterCommand}" CommandParameter="{Binding ElementName=ConverterTextBtn}">
  66. <StackPanel Orientation="Horizontal" Margin="12 0 12 0">
  67. <StackPanel Margin="0,0,8,0">
  68. <Border Height="30" Width="30" Background="LightSeaGreen" ></Border>
  69. </StackPanel >
  70. <TextBlock Text="PDF转Text" VerticalAlignment="Center"></TextBlock>
  71. </StackPanel>
  72. </Button>
  73. <Button Name="ConverterImgBtn" Style="{StaticResource InsideBarBtnStyle }" Command="{Binding ToConverterCommand}" CommandParameter="{Binding ElementName=ConverterImgBtn}">
  74. <StackPanel Orientation="Horizontal" Margin="12 0 12 0">
  75. <StackPanel Margin="0,0,8,0">
  76. <Border Height="30" Width="30" Background="LightSeaGreen" ></Border>
  77. </StackPanel >
  78. <TextBlock Text="PDF转图片" VerticalAlignment="Center"></TextBlock>
  79. </StackPanel>
  80. </Button>
  81. </WrapPanel>
  82. </Border>
  83. </Grid>
  84. </UserControl>