123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- <UserControl x:Class="PRSDesktop.DataEntryList"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:PRSDesktop"
- xmlns:sf="http://schemas.syncfusion.com/wpf"
- xmlns:dynamic="clr-namespace:InABox.DynamicGrid;assembly=InABox.Wpf"
- mc:Ignorable="d"
- d:DesignHeight="450" d:DesignWidth="800">
- <dynamic:DynamicTabControl
- x:Name="_pages"
- TabStripPlacement="Bottom"
- TabIndex="0"
- SelectionChanged="_pages_OnSelectionChanged">
- <dynamic:DynamicTabControl.Items>
- <dynamic:DynamicTabItem Header="Current">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="*"/>
- <RowDefinition Height="4"/>
- <RowDefinition Height="2*"/>
- </Grid.RowDefinitions>
- <local:DataEntryGrid
- Grid.Row="0"
- x:Name="_dataEntryGrid"
- OnSelectItem="_documents_OnSelectItem"
- AllowDrop="True"
- PreviewDragOver="DynamicTabItem_DragOver"
- Drop="DynamicTabItem_Drop"
- ContextMenuOpening="_dataEntryGrid_OnContextMenuOpening">
- <local:DataEntryGrid.ContextMenu>
- <ContextMenu x:Name="_uploadMenu" Opened="_uploadMenu_OnOpened" >
- <MenuItem x:Name="_additem" Header="Load From File" Click="_addItem_OnClick" />
- <MenuItem x:Name="_pasteItem" Header="Paste From Clipboard" Click="_pasteItem_OnClick" />
-
- <Separator x:Name="_changetagseparator"/>
- <MenuItem x:Name="_changeTag" Header="Set Tag"/>
-
- <Separator x:Name="_archiveseparator"/>
- <MenuItem x:Name="_archive" Header="Archive" Click="_remove_OnClick"/>
- </ContextMenu>
- </local:DataEntryGrid.ContextMenu>
- </local:DataEntryGrid>
- <sf:SfGridSplitter Grid.Row="1"
- Height="4"
- HorizontalAlignment="Stretch"
- Background="Transparent"
- ResizeBehavior="PreviousAndNext"
- Template="{StaticResource HorizontalSplitter}"
- PreviewStyle="{StaticResource HorizontalSplitterPreview}"/>
- <Border Grid.Row="2"
- BorderBrush="Gray" Background="DimGray"
- AllowDrop="True"
- DragOver="DynamicTabItem_DragOver"
- Drop="DynamicTabItem_Drop">
- <ScrollViewer VerticalScrollBarVisibility="Auto">
- <StackPanel x:Name="ViewListPanel" Orientation="Vertical" Margin="10">
- <StackPanel.ContextMenu>
- <ContextMenu
- x:Name="_contextMenu">
- <ContextMenu.Items>
- <MenuItem x:Name="_Explode" Header="Regroup Pages" Click="_Explode_OnClick"/>
- </ContextMenu.Items>
- </ContextMenu>
- </StackPanel.ContextMenu>
-
- </StackPanel>
- </ScrollViewer>
- </Border>
- </Grid>
- </dynamic:DynamicTabItem>
-
- <dynamic:DynamicTabItem Header="Archive">
- <local:DataEntryHistory
- x:Name="_historyGrid"
- OnSelectItem="_historyGrid_OnOnSelectItem">
- <local:DataEntryHistory.ContextMenu>
- <ContextMenu x:Name="_historymenu" >
- <MenuItem x:Name="_reopen" Header="Re-Open" Click="_reopen_OnClick"/>
- </ContextMenu>
- </local:DataEntryHistory.ContextMenu>
- </local:DataEntryHistory>
- </dynamic:DynamicTabItem>
-
- </dynamic:DynamicTabControl.Items>
- </dynamic:DynamicTabControl>
-
- </UserControl>
|