JobDocumentSetPanel.xaml 4.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <UserControl x:Class="PRSDesktop.JobDocumentSetPanel"
  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:dynamicGrid="clr-namespace:InABox.DynamicGrid;assembly=InABox.DynamicGrid"
  8. xmlns:syncfusion="http://schemas.syncfusion.com/wpf"
  9. mc:Ignorable="d"
  10. d:DesignHeight="300" d:DesignWidth="800">
  11. <dynamicGrid:DynamicSplitPanel MasterWidth="250" MasterCaption="Folders" DetailCaption="Documents" View="Combined" OnChanged="DynamicSplitPanel_OnOnChanged">
  12. <dynamicGrid:DynamicSplitPanel.Header>
  13. <Border DockPanel.Dock="Top" BorderBrush="Gray" BorderThickness="0.75,0.75,0.75,0" Background="Gainsboro" Height="30">
  14. <Label Content="Folders" HorizontalContentAlignment="Center" FontWeight="Bold" FontSize="12"/>
  15. </Border>
  16. </dynamicGrid:DynamicSplitPanel.Header>
  17. <dynamicGrid:DynamicSplitPanel.Master>
  18. <local:JobDocumentSetFolderTree x:Name="Folders" OnSelectItem="Folders_OnOnSelectItem"/>
  19. </dynamicGrid:DynamicSplitPanel.Master>
  20. <dynamicGrid:DynamicSplitPanel.Detail>
  21. <Grid>
  22. <Grid.ColumnDefinitions>
  23. <ColumnDefinition Width="*"/>
  24. <ColumnDefinition Width="260" />
  25. </Grid.ColumnDefinitions>
  26. <Grid.RowDefinitions>
  27. <RowDefinition Height="Auto"/>
  28. <RowDefinition Height="*"/>
  29. </Grid.RowDefinitions>
  30. <Border Grid.Row="0" Grid.Column="0" DockPanel.Dock="Top" BorderBrush="Gray" BorderThickness="0.75,0.75,0.75,0" Background="Gainsboro" Height="30">
  31. <Label Content="Documents" HorizontalContentAlignment="Center" FontWeight="Bold" FontSize="12"/>
  32. </Border>
  33. <local:JobDocumentSetTree Grid.Row="1" Grid.Column="0" x:Name="Documents" Margin="0,2,0,0" MileStoneSelected="Documents_OnMileStoneSelected" />
  34. <Border Grid.Row="0" Grid.Column="1" BorderBrush="Gray" BorderThickness="0.75,0.75,0.75,0" Background="Gainsboro" Height="30" Margin="4,0,0,0">
  35. <Label Content="Preview" HorizontalContentAlignment="Center" FontWeight="Bold" FontSize="12"/>
  36. </Border>
  37. <ListView x:Name="preview" Grid.Row="1" Grid.Column="1" Background="DimGray" Margin="4,2,0,0" SizeChanged="Preview_OnSizeChanged"
  38. ScrollViewer.HorizontalScrollBarVisibility="Disabled">
  39. <ListView.ItemTemplate>
  40. <DataTemplate>
  41. <Border Background="White" CornerRadius="5" BorderThickness="0.75" BorderBrush="Black" VerticalAlignment="Stretch">
  42. <DockPanel VerticalAlignment="Stretch">
  43. <Label DockPanel.Dock="Bottom" Content="{Binding Item2}" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Height="25" />
  44. <Image DockPanel.Dock="Top" Source="{Binding Item3}" Stretch="Uniform" Margin="5" />
  45. </DockPanel>
  46. </Border>
  47. </DataTemplate>
  48. </ListView.ItemTemplate>
  49. <!-- <ListView.ItemContainerStyle> -->
  50. <!-- <Style TargetType="ListViewItem"> -->
  51. <!-- <Setter Property="HorizontalContentAlignment" Value="Stretch" /> -->
  52. <!-- <Setter Property="Height" Value="{Binding ActualWidth, RelativeSource={RelativeSource Self}}" /> -->
  53. <!-- <Setter Property="Margin" Value="2,2,0,2"/> -->
  54. <!-- <Setter Property="Background" Value="Chartreuse"/> -->
  55. <!-- </Style> -->
  56. <!-- </ListView.ItemContainerStyle> -->
  57. </ListView>
  58. </Grid>
  59. </dynamicGrid:DynamicSplitPanel.Detail>
  60. </dynamicGrid:DynamicSplitPanel>
  61. </UserControl>