MeasureInfoPanel.xaml 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. <UserControl x:Class="Compdfkit_Tools.Measure.MeasureInfoPanel"
  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. d:DesignHeight="350" d:DesignWidth="150">
  9. <Border BorderBrush="LightGray" CornerRadius="4" Background="White">
  10. <Border.Effect>
  11. <DropShadowEffect BlurRadius="20" ShadowDepth="0" Color="Black" Opacity="0.4"/>
  12. </Border.Effect>
  13. <Grid Margin="20,20,0,0" Width="300" >
  14. <Grid.ColumnDefinitions>
  15. <ColumnDefinition Width="auto"></ColumnDefinition>
  16. <ColumnDefinition Width="*"></ColumnDefinition>
  17. </Grid.ColumnDefinitions>
  18. <Grid.RowDefinitions>
  19. <RowDefinition Height="auto"></RowDefinition>
  20. <RowDefinition Height="auto"></RowDefinition>
  21. <RowDefinition Height="auto"></RowDefinition>
  22. </Grid.RowDefinitions>
  23. <Path Name="MeasureIcon" Width="20" Height="20" Fill="#43474D" >
  24. <Path.Data>
  25. M17.7782 5.75646L14.2427 2.22093L13.0052 3.45837L15.4802 5.93333L14.4195 6.99399L11.9446 4.51903L10.1768
  26. 6.28679L12.6518 8.76175L11.5911 9.82241L9.11615 7.34745L7.34838 9.11522L9.82334 11.5902L8.76268 12.6508L6.28772
  27. 10.1759L4.51996 11.9436L6.99492 14.4186L5.93426 15.4793L3.4593 13.0043L2.22186 14.2417L5.75739 17.7773L17.7782
  28. 5.75646ZM15.3033 1.16027L14.2427 0.0996094L13.182 1.16027L1.1612 13.1811L0.100539 14.2417L1.1612 15.3024L4.69673
  29. 18.8379L5.75739 19.8986L6.81805 18.8379L18.8389 6.81712L19.8995 5.75646L18.8389 4.6958L15.3033 1.16027Z
  30. </Path.Data>
  31. </Path>
  32. <TextBlock Name="MeasureTitelText" Grid.Column="1" Margin="10,0,0,0" VerticalAlignment="Center"
  33. FontSize="16">Distance Measurement</TextBlock>
  34. <Grid Name="LinePanel" Grid.Row="1" Grid.Column="1" Margin="0,10,0,0" Visibility="Collapsed">
  35. <Grid.ColumnDefinitions>
  36. <ColumnDefinition Width="80"></ColumnDefinition>
  37. <ColumnDefinition Width="auto"></ColumnDefinition>
  38. </Grid.ColumnDefinitions>
  39. <Grid.RowDefinitions>
  40. <RowDefinition Height="auto"></RowDefinition>
  41. <RowDefinition Height="auto"></RowDefinition>
  42. <RowDefinition Height="auto"></RowDefinition>
  43. <RowDefinition Height="auto"></RowDefinition>
  44. <RowDefinition Height="auto"></RowDefinition>
  45. <RowDefinition Height="auto"></RowDefinition>
  46. </Grid.RowDefinitions>
  47. <TextBlock FontSize="14">Scale:</TextBlock>
  48. <TextBlock Name="ScaleText" Grid.Column="1" FontSize="14"></TextBlock>
  49. <TextBlock Grid.Row="1" Margin="0,10,0,0" FontSize="14">Length:</TextBlock>
  50. <TextBlock Name="DistanceText" Grid.Row="1" Grid.Column="1" Margin="0,10,0,0" FontSize="14"></TextBlock>
  51. <TextBlock Grid.Row="2" Margin="0,10,0,0" FontSize="14">Precision:</TextBlock>
  52. <TextBlock Name="PrecisionText" Grid.Row="2" Grid.Column="1" Margin="0,10,0,0" FontSize="14"></TextBlock>
  53. <TextBlock Grid.Row="3" Margin="0,10,0,0" FontSize="14">Angle:</TextBlock>
  54. <TextBlock Name="AngleText" Grid.Row="3" Grid.Column="1" Margin="0,10,0,0" FontSize="14"></TextBlock>
  55. <TextBlock Grid.Row="4" Margin="0,10,0,0" FontSize="14">X:</TextBlock>
  56. <TextBlock Name="XText" Grid.Row="4" Grid.Column="1" Margin="0,10,0,0" FontSize="14"></TextBlock>
  57. <TextBlock Grid.Row="5" Margin="0,10,0,0" FontSize="14">Y:</TextBlock>
  58. <TextBlock Name="YText" Grid.Row="5" Grid.Column="1" Margin="0,10,0,0" FontSize="14"></TextBlock>
  59. </Grid>
  60. <Grid Name="PolyLinePanel" Grid.Row="1" Grid.Column="1" Margin="0,10,0,0" Visibility="Collapsed">
  61. <Grid.ColumnDefinitions>
  62. <ColumnDefinition Width="80"></ColumnDefinition>
  63. <ColumnDefinition Width="auto"></ColumnDefinition>
  64. </Grid.ColumnDefinitions>
  65. <Grid.RowDefinitions>
  66. <RowDefinition Height="auto"></RowDefinition>
  67. <RowDefinition Height="auto"></RowDefinition>
  68. <RowDefinition Height="auto"></RowDefinition>
  69. <RowDefinition Height="auto"></RowDefinition>
  70. </Grid.RowDefinitions>
  71. <TextBlock FontSize="14">Scale:</TextBlock>
  72. <TextBlock Name="ScalePolyLineText" Grid.Column="1" FontSize="14"></TextBlock>
  73. <TextBlock Grid.Row="1" Margin="0,10,0,0" FontSize="14">Length:</TextBlock>
  74. <TextBlock Name="DistancePolyLineText" Grid.Row="1" Grid.Column="1" Margin="0,10,0,0" FontSize="14"></TextBlock>
  75. <TextBlock Grid.Row="2" Margin="0,10,0,0" FontSize="14">Precision:</TextBlock>
  76. <TextBlock Name="PrecisionPolyLineText" Grid.Row="2" Grid.Column="1" Margin="0,10,0,0" FontSize="14"></TextBlock>
  77. <TextBlock Grid.Row="3" Margin="0,10,0,0" FontSize="14">Angle:</TextBlock>
  78. <TextBlock Name="AnglePolyLineText" Grid.Row="3" Grid.Column="1" Margin="0,10,0,0" FontSize="14"></TextBlock>
  79. </Grid>
  80. <Grid Name="PolygonPanel" Grid.Row="1" Grid.Column="1" Margin="0,10,0,0" Visibility="Collapsed">
  81. <Grid.ColumnDefinitions>
  82. <ColumnDefinition Width="80"></ColumnDefinition>
  83. <ColumnDefinition Width="auto"></ColumnDefinition>
  84. </Grid.ColumnDefinitions>
  85. <Grid.RowDefinitions>
  86. <RowDefinition Height="auto"></RowDefinition>
  87. <RowDefinition Height="auto"></RowDefinition>
  88. <RowDefinition Height="auto"></RowDefinition>
  89. <RowDefinition Height="auto"></RowDefinition>
  90. </Grid.RowDefinitions>
  91. <TextBlock FontSize="14">Scale:</TextBlock>
  92. <TextBlock Name="ScalePolygonText" Grid.Column="1" FontSize="14"></TextBlock>
  93. <TextBlock Grid.Row="1" Margin="0,10,0,0" FontSize="14">Area:</TextBlock>
  94. <TextBlock Name="RoundPolygonText" Grid.Row="1" Grid.Column="1" Margin="0,10,0,0" FontSize="14"></TextBlock>
  95. <TextBlock Grid.Row="2" Margin="0,10,0,0" FontSize="14">Precision:</TextBlock>
  96. <TextBlock Name="PrecisionPolygonText" Grid.Row="2" Grid.Column="1" Margin="0,10,0,0" FontSize="14"></TextBlock>
  97. <TextBlock Grid.Row="3" Margin="0,10,0,0" FontSize="14">Angle:</TextBlock>
  98. <TextBlock Name="AnglePolygonText" Grid.Row="3" Grid.Column="1" Margin="0,10,0,0" FontSize="14"></TextBlock>
  99. </Grid>
  100. <TextBlock Grid.Row="2" Grid.ColumnSpan="2" HorizontalAlignment="Right"
  101. Margin="0,10,40,20" FontSize="14" Foreground="Blue" Cursor="Hand"
  102. MouseLeftButtonDown="TextBlock_MouseLeftButtonDown">Settings</TextBlock>
  103. </Grid>
  104. </Border>
  105. </UserControl>