MeasureControl.xaml 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <UserControl x:Class="Compdfkit_Tools.Measure.MeasureControl"
  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.Measure"
  7. mc:Ignorable="d"
  8. xmlns:cpdftools="clr-namespace:Compdfkit_Tools.PDFControl"
  9. xmlns:cpdfcommon="clr-namespace:Compdfkit_Tools.Common"
  10. Loaded="UserControl_Loaded"
  11. d:DesignHeight="450" d:DesignWidth="800">
  12. <UserControl.Resources>
  13. <ResourceDictionary>
  14. <ResourceDictionary.MergedDictionaries>
  15. <ResourceDictionary Source="../Asset/Styles/ToggleButtonStyle.xaml"></ResourceDictionary>
  16. <ResourceDictionary Source="../Asset/Styles/ButtonStyle.xaml"></ResourceDictionary>
  17. <ResourceDictionary Source="../Asset/Styles/ComboBoxStyle.xaml"></ResourceDictionary>
  18. </ResourceDictionary.MergedDictionaries>
  19. <RoutedUICommand x:Key="Undo" Text="Undo"></RoutedUICommand>
  20. <RoutedUICommand x:Key="Redo" Text="Redo"></RoutedUICommand>
  21. </ResourceDictionary>
  22. </UserControl.Resources>
  23. <Grid>
  24. <Grid Name="BodyGrid">
  25. <Grid.RowDefinitions>
  26. <RowDefinition Height="auto"/>
  27. <RowDefinition Height="*"/>
  28. </Grid.RowDefinitions>
  29. <Grid.ColumnDefinitions>
  30. <ColumnDefinition Width="0"></ColumnDefinition>
  31. <ColumnDefinition Width="0"></ColumnDefinition>
  32. <ColumnDefinition Width="*"></ColumnDefinition>
  33. <ColumnDefinition Width="auto"></ColumnDefinition>
  34. </Grid.ColumnDefinitions>
  35. <Border x:Name="ToolBarContainer" Height="45" Visibility="Visible" BorderThickness="1" BorderBrush="#1A000000" Background="#F2F3F5" Grid.ColumnSpan="4">
  36. <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
  37. <cpdftools:CPDFMeasureBarControl x:Name="PDFMeasureTool" Grid.ColumnSpan="4" Height="44"/>
  38. </StackPanel>
  39. </Border>
  40. <Border Grid.Row="1" Visibility="Collapsed" Name="BotaContainer"></Border>
  41. <GridSplitter Grid.Row="1" Name="Splitter" Grid.Column="1" Width="15" ResizeBehavior="PreviousAndNext" Visibility="Collapsed">
  42. <GridSplitter.Template>
  43. <ControlTemplate TargetType="{x:Type GridSplitter}">
  44. <Border BorderThickness="{TemplateBinding Border.BorderThickness}"
  45. BorderBrush="{TemplateBinding Border.BorderBrush}"
  46. Background="{TemplateBinding Panel.Background}" >
  47. <Path Fill="Gray" VerticalAlignment="Center">
  48. <Path.Data>
  49. M15 3.75H1V2.25H15V3.75ZM15 8.75H1V7.25H15V8.75ZM1 13.75H15V12.25H1V13.75Z
  50. </Path.Data>
  51. </Path>
  52. </Border>
  53. </ControlTemplate>
  54. </GridSplitter.Template>
  55. </GridSplitter>
  56. <Grid Grid.Row="1" Grid.Column="2">
  57. <Border x:Name="PDFGrid" Background="#CECECE"></Border>
  58. <local:MeasureInfoPanel x:Name="InfoPanel" Width="300" HorizontalAlignment="Right" Margin="0,20,30,0"
  59. Visibility="Collapsed" VerticalAlignment="Top"
  60. SettingClick="MeasureInfoPanel_SettingClick"></local:MeasureInfoPanel>
  61. <local:MeasureSettingPanel x:Name="SettingPanel" HorizontalAlignment="Center" VerticalAlignment="Center"
  62. Visibility="Collapsed"
  63. CancelEvent="SettingPanel_CancelEvent"
  64. DoneEvent="SettingPanel_DoneEvent">
  65. </local:MeasureSettingPanel>
  66. </Grid>
  67. <Border Grid.Column="3" Name="PropertyContainer" Grid.Row="1" Visibility="Collapsed" ></Border>
  68. <cpdfcommon:PageNumberControl Grid.Column="2" Grid.Row="1" x:Name="FloatPageTool" HorizontalAlignment="Center" VerticalAlignment="Bottom" Margin="0,0,0,20"></cpdfcommon:PageNumberControl>
  69. </Grid>
  70. </Grid>
  71. </UserControl>