DataEntryList.xaml 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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. xmlns:wpf="clr-namespace:InABox.WPF;assembly=InABox.Wpf"
  10. mc:Ignorable="d"
  11. d:DesignHeight="450" d:DesignWidth="800"
  12. x:Name="Control"
  13. DataContext="{Binding ElementName=Control}">
  14. <dynamic:DynamicTabControl
  15. x:Name="_pages"
  16. TabStripPlacement="Bottom"
  17. TabIndex="0"
  18. TabStripHeight="30"
  19. SelectionChanged="_pages_OnSelectionChanged">
  20. <dynamic:DynamicTabControl.Items>
  21. <dynamic:DynamicTabItem Header="Current">
  22. <Grid>
  23. <Grid.RowDefinitions>
  24. <RowDefinition Height="*"/>
  25. <RowDefinition Height="4"/>
  26. <RowDefinition Height="2*"/>
  27. </Grid.RowDefinitions>
  28. <local:DataEntryGrid
  29. Grid.Row="0"
  30. x:Name="_dataEntryGrid"
  31. OnSelectItem="_documents_OnSelectItem"
  32. AllowDrop="True"
  33. PreviewDragOver="DynamicTabItem_DragOver"
  34. Drop="DynamicTabItem_Drop"
  35. ContextMenuOpening="_dataEntryGrid_OnContextMenuOpening">
  36. <local:DataEntryGrid.ContextMenu>
  37. <ContextMenu x:Name="_uploadMenu" Opened="_uploadMenu_OnOpened"/>
  38. </local:DataEntryGrid.ContextMenu>
  39. </local:DataEntryGrid>
  40. <sf:SfGridSplitter Grid.Row="1"
  41. Height="4"
  42. HorizontalAlignment="Stretch"
  43. Background="Transparent"
  44. ResizeBehavior="PreviousAndNext"
  45. Template="{StaticResource HorizontalSplitter}"
  46. PreviewStyle="{StaticResource HorizontalSplitterPreview}"/>
  47. <local:DataEntryViewList x:Name="ViewList"
  48. Grid.Row="2"
  49. AllowDrop="True" DragOver="DynamicTabItem_DragOver" Drop="DynamicTabItem_Drop"
  50. CanExplode="True"
  51. Explode="ViewList_Explode"
  52. ExplodeAll="ViewList_ExplodeAll"
  53. UpdateDocument="ViewList_UpdateDocument"/>
  54. </Grid>
  55. </dynamic:DynamicTabItem>
  56. <dynamic:DynamicTabItem Header="Archive">
  57. <local:DataEntryHistory
  58. x:Name="_historyGrid"
  59. OnSelectItem="_historyGrid_OnOnSelectItem">
  60. <local:DataEntryHistory.ContextMenu>
  61. <ContextMenu x:Name="_historymenu" >
  62. <MenuItem x:Name="_reopen" Header="Re-Open" Click="_reopen_OnClick"/>
  63. </ContextMenu>
  64. </local:DataEntryHistory.ContextMenu>
  65. </local:DataEntryHistory>
  66. </dynamic:DynamicTabItem>
  67. </dynamic:DynamicTabControl.Items>
  68. </dynamic:DynamicTabControl>
  69. </UserControl>