ExtendableLine.xaml 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. <UserControl x:Class="MuchInfo.Chart.WPF.Controls.Drawing.ExtendableLine"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:drawing="clr-namespace:MuchInfo.Chart.WPF.Controls.Drawing"
  6. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  7. mc:Ignorable="d">
  8. <Canvas x:Name="LayoutRoot">
  9. <Line x:Name="lineTopTopMain"
  10. Stroke="White"
  11. Visibility="Collapsed"
  12. X1="20"
  13. X2="40"
  14. Y1="20"
  15. Y2="40" />
  16. <Line x:Name="lineTopTopLeft"
  17. Stroke="Red"
  18. Visibility="Collapsed"
  19. X1="0"
  20. X2="20"
  21. Y1="0"
  22. Y2="20" />
  23. <Line x:Name="lineTopTopRight"
  24. Stroke="Red"
  25. Visibility="Collapsed"
  26. X1="40"
  27. X2="60"
  28. Y1="40"
  29. Y2="60" />
  30. <Line x:Name="lineTopMain"
  31. Stroke="White"
  32. Visibility="Collapsed"
  33. X1="20"
  34. X2="40"
  35. Y1="20"
  36. Y2="40" />
  37. <Line x:Name="lineTopLeft"
  38. Stroke="Red"
  39. Visibility="Collapsed"
  40. X1="0"
  41. X2="20"
  42. Y1="0"
  43. Y2="20" />
  44. <Line x:Name="lineTopRight"
  45. Stroke="Red"
  46. Visibility="Collapsed"
  47. X1="40"
  48. X2="60"
  49. Y1="40"
  50. Y2="60" />
  51. <Line x:Name="lineBotMain"
  52. Stroke="White"
  53. Visibility="Collapsed"
  54. X1="20"
  55. X2="40"
  56. Y1="20"
  57. Y2="40" />
  58. <Line x:Name="lineBotLeft"
  59. Stroke="Red"
  60. Visibility="Collapsed"
  61. X1="0"
  62. X2="20"
  63. Y1="0"
  64. Y2="20" />
  65. <Line x:Name="lineBotRight"
  66. Stroke="Red"
  67. Visibility="Collapsed"
  68. X1="40"
  69. X2="60"
  70. Y1="40"
  71. Y2="60" />
  72. <Line x:Name="lineBotBotMain"
  73. Stroke="White"
  74. Visibility="Collapsed"
  75. X1="20"
  76. X2="40"
  77. Y1="20"
  78. Y2="40" />
  79. <Line x:Name="lineBotBotLeft"
  80. Stroke="Red"
  81. Visibility="Collapsed"
  82. X1="0"
  83. X2="20"
  84. Y1="0"
  85. Y2="20" />
  86. <Line x:Name="lineBotBotRight"
  87. Stroke="Red"
  88. Visibility="Collapsed"
  89. X1="40"
  90. X2="60"
  91. Y1="40"
  92. Y2="60" />
  93. <Line x:Name="lineMain"
  94. Stroke="White"
  95. X1="20"
  96. X2="40"
  97. Y1="20"
  98. Y2="40" />
  99. <Line x:Name="lineLeft"
  100. Stroke="Red"
  101. Visibility="Collapsed"
  102. X1="0"
  103. X2="20"
  104. Y1="0"
  105. Y2="20" />
  106. <Line x:Name="lineRight"
  107. Stroke="Red"
  108. Visibility="Collapsed"
  109. X1="40"
  110. X2="60"
  111. Y1="40"
  112. Y2="60" />
  113. <drawing:DrawingSelectionGrab x:Name="grabSelection" />
  114. <drawing:DrawingChannelGrab x:Name="grabTop" Visibility="Collapsed" />
  115. <drawing:DrawingChannelGrab x:Name="grabBot" Visibility="Collapsed" />
  116. <drawing:DrawingPointGrab x:Name="grabLeft"
  117. Canvas.Left="13"
  118. Canvas.Top="13" />
  119. <drawing:DrawingPointGrab x:Name="grabRight"
  120. Canvas.Left="33"
  121. Canvas.Top="33" />
  122. </Canvas>
  123. </UserControl>