PocketRawDataChart.xaml 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. <UserControl x:Class="Aitex.Core.UI.Control.PocketRawDataChart"
  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:sciChart="http://schemas.abtsoftware.co.uk/scichart"
  7. xmlns:cv="clr-namespace:Aitex.Core.UI.Converters"
  8. mc:Ignorable="d"
  9. d:DesignHeight="300" d:DesignWidth="300">
  10. <UserControl.Resources>
  11. <cv:bool2VisibilityConverter x:Key="bool2VisibilityConvert"/>
  12. </UserControl.Resources>
  13. <Grid>
  14. <sciChart:SciChartSurface x:Name="sciChart" MouseDoubleClick="sciChart_MouseDoubleClick" MouseLeave="sciChart_MouseLeave" MouseMove="sciChart_MouseMove" sciChart:ThemeManager.Theme="ExpressionLight" ClipToBounds="False" DebugWhyDoesntSciChartRender="True" Padding="8,0">
  15. <sciChart:SciChartSurface.RenderableSeries>
  16. <sciChart:FastLineRenderableSeries IsVisible="{Binding TemperatureVisible}" YAxisId="TemperatureYAxis" DataSeries="{Binding TemperatureData}" SeriesColor="Red"/>
  17. <sciChart:FastLineRenderableSeries IsVisible="{Binding ReflectVisible}" YAxisId="ReflectYAxis" DataSeries="{Binding ReflectData}" SeriesColor="Blue"/>
  18. <sciChart:FastLineRenderableSeries IsVisible="{Binding CurvatureVisible}" YAxisId="CurvatureYAxis" DataSeries="{Binding CurvatureData}" SeriesColor="Green"/>
  19. </sciChart:SciChartSurface.RenderableSeries>
  20. <sciChart:SciChartSurface.YAxes>
  21. <sciChart:NumericAxis Visibility="{Binding TemperatureVisible,Converter= {StaticResource bool2VisibilityConvert}}"
  22. AutoRange="{Binding AutoRange,Mode=TwoWay}"
  23. VisibleRange="{Binding VisibleRange,Mode=OneWay}"
  24. Arranged="TemperatureYAxis_Arranged"
  25. DrawMinorGridLines="False"
  26. TickTextBrush="Red"
  27. Id="TemperatureYAxis"
  28. AxisAlignment="Left"
  29. DrawMinorTicks="False"
  30. MaxWidth="40"
  31. MinWidth="40"
  32. FontSize="11"
  33. Foreground="Blue"
  34. DrawLabels="True"
  35. DrawMajorBands="False"
  36. DrawMajorGridLines="True"
  37. DrawMajorTicks="True"
  38. AxisTitle=" ">
  39. <sciChart:NumericAxis.GrowBy>
  40. <sciChart:DoubleRange Min="0.1" Max="0.1"/>
  41. </sciChart:NumericAxis.GrowBy>
  42. </sciChart:NumericAxis>
  43. <sciChart:NumericAxis Visibility="{Binding ReflectVisible,Converter= {StaticResource bool2VisibilityConvert}}"
  44. AutoRange="{Binding AutoRange,Mode=TwoWay}"
  45. VisibleRange="{Binding VisibleRange,Mode=OneWay}"
  46. DrawMinorGridLines="False"
  47. TickTextBrush="Blue"
  48. Id="ReflectYAxis"
  49. AxisAlignment="Right"
  50. DrawMinorTicks="False"
  51. MaxWidth="35"
  52. MinWidth="35"
  53. FontSize="11"
  54. Foreground="Blue"
  55. DrawLabels="True"
  56. DrawMajorBands="False"
  57. DrawMajorGridLines="True"
  58. DrawMajorTicks="True"
  59. AxisTitle="">
  60. <sciChart:NumericAxis.GrowBy>
  61. <sciChart:DoubleRange Min="0.1" Max="0.1"/>
  62. </sciChart:NumericAxis.GrowBy>
  63. </sciChart:NumericAxis>
  64. <sciChart:NumericAxis Visibility="{Binding CurvatureVisible,Converter= {StaticResource bool2VisibilityConvert}}"
  65. AutoRange="{Binding AutoRange,Mode=TwoWay}"
  66. VisibleRange="{Binding VisibleRange,Mode=OneWay}"
  67. DrawMinorGridLines="False"
  68. TickTextBrush="Green"
  69. Id="CurvatureYAxis"
  70. AxisAlignment="Right"
  71. DrawMinorTicks="False"
  72. MaxWidth="35"
  73. MinWidth="35"
  74. FontSize="11"
  75. Foreground="Green"
  76. DrawLabels="True"
  77. DrawMajorBands="False"
  78. DrawMajorGridLines="True"
  79. DrawMajorTicks="True" AxisTitle="">
  80. <sciChart:NumericAxis.GrowBy>
  81. <sciChart:DoubleRange Min="0.1" Max="0.1"/>
  82. </sciChart:NumericAxis.GrowBy>
  83. </sciChart:NumericAxis>
  84. </sciChart:SciChartSurface.YAxes>
  85. <sciChart:SciChartSurface.XAxis>
  86. <sciChart:NumericAxis x:Name="numAxis" AutoRange="Always" Arranged="XAxis_Arranged"
  87. DrawMinorGridLines="False" MajorDelta="1.0"
  88. DrawMinorTicks="False" DrawMajorBands="False" DrawMajorGridLines="False" DrawMajorTicks="False"
  89. MaxAutoTicks="1500" MinorsPerMajor="1" FlipCoordinates="False" Focusable="False"
  90. Background="LightGray" FontSize="11" DrawLabels="False" AxisTitle=" " AutoTicks="True">
  91. </sciChart:NumericAxis>
  92. </sciChart:SciChartSurface.XAxis>
  93. <sciChart:SciChartSurface.Annotations>
  94. <sciChart:BoxAnnotation Name="maskAnnotation" YAxisId="TemperatureYAxis" Visibility="Hidden" Background="#55279B27" BorderBrush="#279B27" BorderThickness="1" CornerRadius="3" X1="0" X2="0" Y1="0" Y2="0"></sciChart:BoxAnnotation>
  95. </sciChart:SciChartSurface.Annotations>
  96. </sciChart:SciChartSurface>
  97. </Grid>
  98. </UserControl>