CPDFOutlineUI.xaml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <UserControl x:Class="Compdfkit_Tools.PDFControlUI.CPDFOutlineUI"
  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:Compdfkit_Tools.PDFControlUI" d:DataContext="{d:DesignInstance Type=local:CPDFOutlineUI}"
  7. mc:Ignorable="d"
  8. d:DesignHeight="600"
  9. d:DesignWidth="300" Background="#FAFCFF">
  10. <UserControl.Resources>
  11. <ResourceDictionary>
  12. <ResourceDictionary.MergedDictionaries>
  13. <ResourceDictionary Source="../../../Asset/Styles/TreeViewItemStyle.xaml"></ResourceDictionary>
  14. </ResourceDictionary.MergedDictionaries>
  15. </ResourceDictionary>
  16. </UserControl.Resources>
  17. <Grid>
  18. <Grid.RowDefinitions>
  19. <RowDefinition Height="auto"></RowDefinition>
  20. <RowDefinition Height="*"></RowDefinition>
  21. </Grid.RowDefinitions>
  22. <Border Height="50">
  23. <TextBlock Foreground="#43474D" VerticalAlignment="Center" Margin="16,0,0,0" FontSize="14">Outlines</TextBlock>
  24. </Border>
  25. <Grid Grid.Row="1">
  26. <TreeView Name="OutlineTree" BorderThickness="0" Background="#FAFCFF" FontSize="14" Margin="8,0,0,0" SelectedItemChanged="OutlineTree_SelectedItemChanged">
  27. <TreeView.Resources>
  28. <Style TargetType="TreeViewItem" BasedOn="{StaticResource TreeViewItemStyle}"/>
  29. </TreeView.Resources>
  30. </TreeView>
  31. <TextBlock Name="NoResultText" Foreground="#43474D" FontSize="14" LineHeight="16" VerticalAlignment="Center" HorizontalAlignment="Center">No Outline</TextBlock>
  32. </Grid>
  33. </Grid>
  34. </UserControl>