FutureDateSplit.xaml 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <UserControl x:Class="MuchInfo.Chart.WPF.Controls.DateScaling.FutureDateSplit"
  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. <Border x:Name="theBorder"
  7. Margin="3,0,3,0"
  8. Background="Transparent"
  9. BorderBrush="Transparent"
  10. BorderThickness="1"
  11. CornerRadius="4"
  12. LostMouseCapture="theBorder_LostMouseCapture"
  13. MouseEnter="theBorder_MouseEnter"
  14. MouseLeave="theBorder_MouseLeave"
  15. MouseLeftButtonDown="theBorder_MouseLeftButtonDown"
  16. MouseLeftButtonUp="theBorder_MouseLeftButtonUp"
  17. MouseMove="theBorder_MouseMove"
  18. Padding="2,0,2,0">
  19. <Grid>
  20. <Grid.ColumnDefinitions>
  21. <ColumnDefinition Width="auto" />
  22. <ColumnDefinition Width="auto" />
  23. <ColumnDefinition x:Name="rightArrowDef"
  24. Width="auto"
  25. MinWidth="10" />
  26. </Grid.ColumnDefinitions>
  27. <Path x:Name="arrowLeft"
  28. Width="10"
  29. VerticalAlignment="Center"
  30. Fill="#FF111111"
  31. Stroke="SteelBlue"
  32. StrokeEndLineCap="Triangle"
  33. StrokeThickness="1"
  34. Visibility="Collapsed">
  35. <Path.Data>
  36. <PathGeometry>
  37. <PathGeometry.Figures>
  38. <PathFigureCollection>
  39. <PathFigure StartPoint="1,5">
  40. <PathFigure.Segments>
  41. <LineSegment Point="9,0" />
  42. <LineSegment Point="9,10" />
  43. <LineSegment Point="1,5" />
  44. </PathFigure.Segments>
  45. </PathFigure>
  46. </PathFigureCollection>
  47. </PathGeometry.Figures>
  48. </PathGeometry>
  49. </Path.Data>
  50. </Path>
  51. <Path x:Name="arrowRight"
  52. Grid.Column="2"
  53. Width="10"
  54. VerticalAlignment="Center"
  55. Fill="#FF111111"
  56. Stroke="SteelBlue"
  57. StrokeEndLineCap="Triangle"
  58. StrokeThickness="1"
  59. Visibility="Collapsed">
  60. <Path.Data>
  61. <PathGeometry>
  62. <PathGeometry.Figures>
  63. <PathFigureCollection>
  64. <PathFigure StartPoint="9,5">
  65. <PathFigure.Segments>
  66. <LineSegment Point="1,0" />
  67. <LineSegment Point="1,10" />
  68. <LineSegment Point="9,5" />
  69. </PathFigure.Segments>
  70. </PathFigure>
  71. </PathFigureCollection>
  72. </PathGeometry.Figures>
  73. </PathGeometry>
  74. </Path.Data>
  75. </Path>
  76. <StackPanel Grid.Column="1"
  77. Margin="2,0,3,0"
  78. Orientation="Horizontal">
  79. <TextBlock x:Name="theLabel"
  80. VerticalAlignment="Center"
  81. Text="" />
  82. <!--
  83. <Path x:Name="thePath" Fill="#FF111111" VerticalAlignment="top" >
  84. <Path.Data>
  85. <PathGeometry>
  86. <PathGeometry.Figures >
  87. <PathFigureCollection >
  88. <PathFigure StartPoint="3,0">
  89. <PathFigure.Segments>
  90. <LineSegment Point="0,5"></LineSegment>
  91. <LineSegment Point="6,5"></LineSegment>
  92. <LineSegment Point="3,0"></LineSegment>
  93. </PathFigure.Segments>
  94. </PathFigure>
  95. </PathFigureCollection>
  96. </PathGeometry.Figures>
  97. </PathGeometry>
  98. </Path.Data>
  99. </Path>
  100. -->
  101. </StackPanel>
  102. </Grid>
  103. </Border>
  104. </UserControl>