PDFEditorControl.xaml 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. <UserControl x:Class="InABox.DynamicGrid.PDFEditorControl"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:syncfusion="clr-namespace:Syncfusion.Windows.PdfViewer;assembly=Syncfusion.PdfViewer.WPF"
  7. mc:Ignorable="d"
  8. d:DesignHeight="450" d:DesignWidth="800">
  9. <Grid>
  10. <Grid.ColumnDefinitions>
  11. <ColumnDefinition Width="*" />
  12. <ColumnDefinition Width="44" x:Name="PDFButtonStack" />
  13. </Grid.ColumnDefinitions>
  14. <Grid.RowDefinitions>
  15. <RowDefinition Height="*" />
  16. <RowDefinition Height="Auto" />
  17. </Grid.RowDefinitions>
  18. <Border x:Name="PDFBorder" BorderBrush="DarkGray" BorderThickness="0.75" Margin="0,0,0,0" Grid.Column="0"
  19. Grid.Row="0" Grid.RowSpan="2">
  20. <syncfusion:PdfDocumentView x:Name="PdfViewer" Background="WhiteSmoke" BorderThickness="0"
  21. CursorMode="HandTool" RenderingEngine="Pdfium" />
  22. </Border>
  23. <StackPanel Orientation="Vertical" Grid.Row="0" Grid.Column="1" Background="WhiteSmoke" Margin="4,0,0,0">
  24. <Button x:Name="PdfPrint" Click="PdfPrint_Click" Margin="0,0,0,15" Height="40" Width="40"
  25. Visibility="Collapsed">
  26. <Image Source="pack://application:,,,/Resources/print.png" />
  27. </Button>
  28. <Button x:Name="PdfSave" Click="PdfSave_Click" Margin="0,0,0,15" Height="40" Width="40"
  29. Visibility="Collapsed">
  30. <Image Source="pack://application:,,,/Resources/disk.png" />
  31. </Button>
  32. <Button x:Name="PdfZoomIn" Click="PdfZoomIn_Click" Margin="0,0,0,2" Height="40" Width="40">
  33. <Image Source="pack://application:,,,/Resources/zoomin.png" />
  34. </Button>
  35. <Button x:Name="PdfZoomWidth" Click="PdfZoomWidth_Click" Margin="0,0,0,2" Height="40" Width="40">
  36. <Image Source="pack://application:,,,/Resources/pagewidth.png" />
  37. </Button>
  38. <Button x:Name="PdfZoomPage" Click="PdfZoomPage_Click" Margin="0,0,0,2" Height="40" Width="40">
  39. <Image Source="pack://application:,,,/Resources/fullpage.png" />
  40. </Button>
  41. <Button x:Name="PdfZoomOut" Click="PdfZoomOut_Click" Margin="0,0,0,15" Height="40" Width="40">
  42. <Image Source="pack://application:,,,/Resources/zoomout.png" />
  43. </Button>
  44. <Button x:Name="PdfColor" Click="PdfColor_Click" Margin="0,0,0,2" Height="40" Width="40">
  45. <Image x:Name="PdfColorImage" Source="pack://application:,,,/Resources/palette.png" />
  46. </Button>
  47. <Button x:Name="PdfSize" Click="PdfSize_Click" Margin="0,0,0,15" Height="40" Width="40">
  48. <Image x:Name="PdfSizeImage" Source="pack://application:,,,/Resources/fontsize.png" />
  49. </Button>
  50. <Button x:Name="PdfNone" Click="PdfNone_Click" Margin="0,0,0,15" Height="40" Width="40">
  51. <Image x:Name="PdfNoneImage" Source="pack://application:,,,/Resources/hand.png" />
  52. </Button>
  53. <Button x:Name="PdfInk" Click="PdfInk_Click" Margin="0,0,0,2" Height="40" Width="40" Visibility="Collapsed">
  54. <Image x:Name="PdfInkImage" Source="pack://application:,,,/Resources/draw.png" />
  55. </Button>
  56. <Button x:Name="PdfLine" Click="PdfLine_Click" Margin="0,0,0,2" Height="40" Width="40">
  57. <Image x:Name="PdfLineImage" Source="pack://application:,,,/Resources/line.png" />
  58. </Button>
  59. <Button x:Name="PdfRectangle" Click="PdfRectangle_Click" Margin="0,0,0,2" Height="40" Width="40">
  60. <Image x:Name="PdfRectangleImage" Source="pack://application:,,,/Resources/square.png" />
  61. </Button>
  62. <Button x:Name="PdfCircle" Click="PdfCircle_Click" Margin="0,0,0,2" Height="40" Width="40">
  63. <Image x:Name="PdfCircleImage" Source="pack://application:,,,/Resources/circle.png" />
  64. </Button>
  65. <Button x:Name="PdfFreeText" Click="PdfFreeText_Click" Margin="0,0,0,10" Height="40" Width="40">
  66. <Image x:Name="PdfFreeTextImage" Source="pack://application:,,,/Resources/text.png" />
  67. </Button>
  68. <Button x:Name="PDFOKStamp" Click="PdfOKStamp_Click" Margin="0,0,0,2" Height="40" Width="40"
  69. Visibility="Collapsed">
  70. <Image x:Name="PdfOKImage" Source="pack://application:,,,/Resources/tick.png" />
  71. </Button>
  72. <Button x:Name="PDFWarningStamp" Click="PdfWarningStamp_Click" Margin="0,0,0,2" Height="40" Width="40"
  73. Visibility="Collapsed">
  74. <Image x:Name="PdfWarningImage" Source="pack://application:,,,/Resources/warning.png" />
  75. </Button>
  76. <Button x:Name="PDFErrorStamp" Click="PdfErrorStamp_Click" Margin="0,0,0,2" Height="40" Width="40"
  77. Visibility="Collapsed">
  78. <Image x:Name="PdfErrorImage" Source="pack://application:,,,/Resources/delete.png" />
  79. </Button>
  80. </StackPanel>
  81. <Button x:Name="RefreshPDF" Click="RefreshPDF_Click" Margin="4,0,0,0" Height="40" Width="40" Grid.Column="1"
  82. Grid.Row="1">
  83. <Image x:Name="RefreshPDFImage" Source="pack://application:,,,/Resources/refresh.png" />
  84. </Button>
  85. </Grid>
  86. </UserControl>