DataEntryList.xaml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <UserControl x:Class="PRSDesktop.DataEntryList"
  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:local="clr-namespace:PRSDesktop"
  7. xmlns:sf="http://schemas.syncfusion.com/wpf"
  8. xmlns:dynamic="clr-namespace:InABox.DynamicGrid;assembly=InABox.Wpf"
  9. mc:Ignorable="d"
  10. d:DesignHeight="450" d:DesignWidth="800">
  11. <dynamic:DynamicTabControl
  12. x:Name="_pages"
  13. TabStripPlacement="Bottom"
  14. TabIndex="0"
  15. SelectionChanged="_pages_OnSelectionChanged">
  16. <dynamic:DynamicTabControl.Items>
  17. <dynamic:DynamicTabItem Header="Current">
  18. <Grid>
  19. <Grid.RowDefinitions>
  20. <RowDefinition Height="*"/>
  21. <RowDefinition Height="4"/>
  22. <RowDefinition Height="2*"/>
  23. </Grid.RowDefinitions>
  24. <local:DataEntryGrid
  25. Grid.Row="0"
  26. x:Name="_dataEntryGrid"
  27. OnSelectItem="_documents_OnSelectItem"
  28. AllowDrop="True"
  29. PreviewDragOver="DynamicTabItem_DragOver"
  30. Drop="DynamicTabItem_Drop"
  31. ContextMenuOpening="_dataEntryGrid_OnContextMenuOpening">
  32. <local:DataEntryGrid.ContextMenu>
  33. <ContextMenu x:Name="_uploadMenu" Opened="_uploadMenu_OnOpened" >
  34. <MenuItem x:Name="_additem" Header="Load From File" Click="_addItem_OnClick" />
  35. <MenuItem x:Name="_pasteItem" Header="Paste From Clipboard" Click="_pasteItem_OnClick" />
  36. <Separator x:Name="_changetagseparator"/>
  37. <MenuItem x:Name="_changeTag" Header="Set Tag"/>
  38. <Separator x:Name="_archiveseparator"/>
  39. <MenuItem x:Name="_archive" Header="Archive" Click="_remove_OnClick"/>
  40. </ContextMenu>
  41. </local:DataEntryGrid.ContextMenu>
  42. </local:DataEntryGrid>
  43. <sf:SfGridSplitter Grid.Row="1"
  44. Height="4"
  45. HorizontalAlignment="Stretch"
  46. Background="Transparent"
  47. ResizeBehavior="PreviousAndNext"
  48. Template="{StaticResource HorizontalSplitter}"
  49. PreviewStyle="{StaticResource HorizontalSplitterPreview}"/>
  50. <Border Grid.Row="2"
  51. BorderBrush="Gray" Background="DimGray"
  52. AllowDrop="True"
  53. DragOver="DynamicTabItem_DragOver"
  54. Drop="DynamicTabItem_Drop">
  55. <ScrollViewer VerticalScrollBarVisibility="Auto">
  56. <StackPanel x:Name="ViewListPanel" Orientation="Vertical" Margin="10">
  57. <StackPanel.ContextMenu>
  58. <ContextMenu
  59. x:Name="_contextMenu">
  60. <ContextMenu.Items>
  61. <MenuItem x:Name="_Explode" Header="Regroup Pages" Click="_Explode_OnClick"/>
  62. </ContextMenu.Items>
  63. </ContextMenu>
  64. </StackPanel.ContextMenu>
  65. </StackPanel>
  66. </ScrollViewer>
  67. </Border>
  68. </Grid>
  69. </dynamic:DynamicTabItem>
  70. <dynamic:DynamicTabItem Header="Archive">
  71. <local:DataEntryHistory
  72. x:Name="_historyGrid"
  73. OnSelectItem="_historyGrid_OnOnSelectItem">
  74. <local:DataEntryHistory.ContextMenu>
  75. <ContextMenu x:Name="_historymenu" >
  76. <MenuItem x:Name="_reopen" Header="Re-Open" Click="_reopen_OnClick"/>
  77. </ContextMenu>
  78. </local:DataEntryHistory.ContextMenu>
  79. </local:DataEntryHistory>
  80. </dynamic:DynamicTabItem>
  81. </dynamic:DynamicTabControl.Items>
  82. </dynamic:DynamicTabControl>
  83. </UserControl>