DateMarginSplitter.xaml 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <UserControl x:Class="MuchInfo.Chart.WPF.Controls.DateScaling.DateMarginSplitter"
  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:mc="http://schemas.openxmlformats.org/markup-compatibility/2006">
  6. <Grid x:Name="theBorder"
  7. Margin="3,0,3,0"
  8. Background="Transparent"
  9. LostMouseCapture="theBorder_LostMouseCapture"
  10. MouseEnter="theBorder_MouseEnter"
  11. MouseLeave="theBorder_MouseLeave"
  12. MouseLeftButtonDown="theBorder_MouseLeftButtonDown"
  13. MouseLeftButtonUp="theBorder_MouseLeftButtonUp"
  14. MouseMove="theBorder_MouseMove">
  15. <Grid.RowDefinitions>
  16. <RowDefinition Height="auto" />
  17. <RowDefinition x:Name="lineRowDef" Height="*" />
  18. <RowDefinition Height="auto" />
  19. </Grid.RowDefinitions>
  20. <Line x:Name="centerLine"
  21. Grid.Row="1"
  22. Margin="3,0,3,0"
  23. HorizontalAlignment="Center"
  24. Stroke="gray"
  25. StrokeDashArray="4,10"
  26. StrokeThickness="3"
  27. X1="0"
  28. X2="0"
  29. Y1="0"
  30. Y2="290" />
  31. <Path Grid.Row="2"
  32. Margin="3,0,3,0"
  33. Fill="#FFCCCCCC">
  34. <Path.Data>
  35. <PathGeometry>
  36. <PathGeometry.Figures>
  37. <PathFigureCollection>
  38. <PathFigure StartPoint="4,0">
  39. <PathFigure.Segments>
  40. <LineSegment Point="0,6" />
  41. <LineSegment Point="8,6" />
  42. <LineSegment Point="4,0" />
  43. </PathFigure.Segments>
  44. </PathFigure>
  45. </PathFigureCollection>
  46. </PathGeometry.Figures>
  47. </PathGeometry>
  48. </Path.Data>
  49. </Path>
  50. <!--
  51. <Path Margin="3,0,3,0"
  52. Fill="#FFCCCCCC"
  53. Visibility="Visible">
  54. <Path.Data>
  55. <PathGeometry>
  56. <PathGeometry.Figures>
  57. <PathFigureCollection>
  58. <PathFigure StartPoint="4,8">
  59. <PathFigure.Segments>
  60. <LineSegment Point="0,0" />
  61. <LineSegment Point="8,0" />
  62. <LineSegment Point="4,8" />
  63. </PathFigure.Segments>
  64. </PathFigure>
  65. </PathFigureCollection>
  66. </PathGeometry.Figures>
  67. </PathGeometry>
  68. </Path.Data>
  69. </Path>
  70. -->
  71. </Grid>
  72. </UserControl>