ValueScaleBufferAdjuster.xaml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <UserControl x:Class="MuchInfo.Chart.WPF.Controls.ValueScaling.ValueScaleBufferAdjuster"
  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="Layout"
  7. Background="Transparent"
  8. LostMouseCapture="Layout_LostMouseCapture"
  9. MouseEnter="Layout_MouseEnter"
  10. MouseLeave="Layout_MouseLeave"
  11. MouseLeftButtonDown="Layout_MouseLeftButtonDown"
  12. MouseLeftButtonUp="Layout_MouseLeftButtonUp"
  13. MouseMove="Layout_MouseMove">
  14. <Grid.ColumnDefinitions>
  15. <ColumnDefinition x:Name="FirstColumn" Width="*" />
  16. <ColumnDefinition Width="auto" />
  17. </Grid.ColumnDefinitions>
  18. <Line x:Name="CenterLine"
  19. Margin="0,2,0,2"
  20. Stroke="gray"
  21. StrokeDashArray="4,10"
  22. StrokeThickness="2"
  23. X1="0"
  24. X2="90"
  25. Y1="4"
  26. Y2="4" />
  27. <Path x:Name="AnchorPath"
  28. Grid.Column="1"
  29. Margin="0,2,0,2"
  30. VerticalAlignment="top"
  31. Fill="#FFCCCCCC"
  32. StrokeThickness="1">
  33. <Path.Data>
  34. <PathGeometry>
  35. <PathGeometry.Figures>
  36. <PathFigureCollection>
  37. <PathFigure StartPoint="0,4">
  38. <PathFigure.Segments>
  39. <LineSegment Point="6,0" />
  40. <LineSegment Point="6,8" />
  41. <LineSegment Point="0,4" />
  42. </PathFigure.Segments>
  43. </PathFigure>
  44. </PathFigureCollection>
  45. </PathGeometry.Figures>
  46. </PathGeometry>
  47. </Path.Data>
  48. </Path>
  49. </Grid>
  50. </UserControl>