QuickToolsContent.xaml 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. <UserControl
  2. x:Class="PDF_Office.Views.HomePanel.PDFTools.QuickToolsContent"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:PDF_Office.Views.HomePanel"
  7. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  8. xmlns:customControl="clr-namespace:PDF_Office.CustomControl"
  9. xmlns:converter="clr-namespace:PDF_Office.DataConvert"
  10. xmlns:pDFTools="clr-namespace:PDF_Office.Views.HomePanel.PDFTools"
  11. d:DesignHeight="450"
  12. d:DesignWidth="800"
  13. mc:Ignorable="d">
  14. <UserControl.Resources>
  15. <ResourceDictionary>
  16. <ResourceDictionary.MergedDictionaries>
  17. <ResourceDictionary Source="../../../Styles/CustomListItemStyle.xaml"/>
  18. </ResourceDictionary.MergedDictionaries>
  19. <converter:BoolToVisible x:Key="BoolToVisibilityConverter" />
  20. <Style x:Key="LabelSty"
  21. TargetType="{x:Type Label}">
  22. <Setter Property="Padding"
  23. Value="10,5" />
  24. <Setter Property="Background"
  25. Value="CadetBlue" />
  26. <Setter Property="Foreground"
  27. Value="White" />
  28. </Style>
  29. <DataTemplate x:Key="DataTemplate">
  30. <pDFTools:PDFToolItem x:Name="data"/>
  31. </DataTemplate>
  32. <ItemsPanelTemplate x:Key="ListItemsPanelTemplate">
  33. <WrapPanel AllowDrop="True"
  34. Orientation="Horizontal" />
  35. </ItemsPanelTemplate>
  36. </ResourceDictionary>
  37. </UserControl.Resources>
  38. <Grid Grid.ColumnSpan="2" Margin="0,0,20,0">
  39. <Grid.RowDefinitions>
  40. <RowDefinition Height="Auto"/>
  41. <RowDefinition Height="*"/>
  42. </Grid.RowDefinitions>
  43. <TextBlock
  44. x:Name="TxbQuickToolsTitle"
  45. Margin="0,0,0,16"
  46. FontSize="24"
  47. FontWeight="SemiBold"
  48. Text="Quick Tools" />
  49. <StackPanel
  50. x:Name="PnlToolsUIBtns" Grid.ColumnSpan="2"
  51. Grid.Column="0"
  52. Margin="0,0,12,0"
  53. HorizontalAlignment="Right"
  54. VerticalAlignment="Top"
  55. Orientation="Horizontal"
  56. Visibility="Visible">
  57. <Button
  58. x:Name="BtnTools"
  59. Width="68"
  60. Height="28"
  61. Margin="0,0,0,0"
  62. Background="#FFFFFF"
  63. Content="Tools"
  64. Click="BtnTools_Click"
  65. >
  66. </Button>
  67. <Button
  68. x:Name="BtnMore"
  69. Width="28"
  70. Height="28"
  71. Margin="12,0,0,0"
  72. Background="#FFFFFF" BorderThickness="0" Content="..."
  73. Click="BtnMore_Click"
  74. >
  75. </Button>
  76. </StackPanel>
  77. <Grid
  78. x:Name="GridAllTools"
  79. Grid.Row="1" Height="270"
  80. SizeChanged="GridAllTools_SizeChanged">
  81. <customControl:ListBoxEx x:Name="ListBoxToolBars" HorizontalAlignment="Stretch" MinWidth="540"
  82. Grid.Row="3"
  83. AllowDrop="True"
  84. BorderThickness="0"
  85. SizeChanged="ListBoxShortCuts_SizeChanged"
  86. ItemContainerStyle="{StaticResource MoreListBoxItemStyle}"
  87. ItemTemplate="{StaticResource DataTemplate}"
  88. ItemsPanel="{StaticResource ListItemsPanelTemplate}"
  89. ScrollViewer.HorizontalScrollBarVisibility="Disabled"
  90. SelectionMode="Single" />
  91. </Grid>
  92. </Grid>
  93. </UserControl>