CPDFOutlineUI.xaml 2.3 KB

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