RawDataChart.xaml 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. <UserControl x:Class="Aitex.Core.UI.Control.RawDataChart"
  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" sciChart:ThemeManager.Theme="ExpressionLight" ClipToBounds="False" DebugWhyDoesntSciChartRender="True" Padding="0">
  15. <sciChart:SciChartSurface.RenderableSeries>
  16. <sciChart:FastLineRenderableSeries IsVisible="{Binding TemperatureVisible}" YAxisId="TemperatureYAxis" DataSeries="{Binding TemperatureData}" Stroke="Red"/>
  17. <sciChart:FastLineRenderableSeries IsVisible="{Binding ReflectVisible}" YAxisId="ReflectYAxis" DataSeries="{Binding ReflectData}" Stroke="Blue"/>
  18. <sciChart:FastLineRenderableSeries IsVisible="{Binding CurvatureVisible}" YAxisId="CurvatureYAxis" DataSeries="{Binding CurvatureData}" Stroke="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. DrawMinorGridLines="False"
  25. TickTextBrush="Red"
  26. Id="TemperatureYAxis"
  27. AxisAlignment="Left"
  28. DrawMinorTicks="False"
  29. MaxWidth="35"
  30. MinWidth="35"
  31. FontSize="11"
  32. Foreground="Blue"
  33. DrawLabels="True"
  34. DrawMajorBands="False"
  35. DrawMajorGridLines="True"
  36. DrawMajorTicks="True"
  37. AxisTitle=" ">
  38. <sciChart:NumericAxis.GrowBy>
  39. <sciChart:DoubleRange Min="0.1" Max="0.1"/>
  40. </sciChart:NumericAxis.GrowBy>
  41. </sciChart:NumericAxis>
  42. <sciChart:NumericAxis Visibility="{Binding ReflectVisible,Converter= {StaticResource bool2VisibilityConvert}}"
  43. AutoRange="{Binding AutoRange,Mode=TwoWay}"
  44. VisibleRange="{Binding VisibleRange,Mode=OneWay}"
  45. DrawMinorGridLines="False"
  46. TickTextBrush="Blue"
  47. Id="ReflectYAxis"
  48. AxisAlignment="Right"
  49. DrawMinorTicks="False"
  50. MaxWidth="35"
  51. MinWidth="35"
  52. FontSize="11"
  53. Foreground="Blue"
  54. DrawLabels="True"
  55. DrawMajorBands="False"
  56. DrawMajorGridLines="True"
  57. DrawMajorTicks="True"
  58. AxisTitle="">
  59. <sciChart:NumericAxis.GrowBy>
  60. <sciChart:DoubleRange Min="0.1" Max="0.1"/>
  61. </sciChart:NumericAxis.GrowBy>
  62. </sciChart:NumericAxis>
  63. <sciChart:NumericAxis Visibility="{Binding CurvatureVisible,Converter= {StaticResource bool2VisibilityConvert}}"
  64. AutoRange="{Binding AutoRange,Mode=TwoWay}"
  65. VisibleRange="{Binding VisibleRange,Mode=OneWay}"
  66. DrawMinorGridLines="False"
  67. TickTextBrush="Green"
  68. Id="CurvatureYAxis"
  69. AxisAlignment="Right"
  70. DrawMinorTicks="False"
  71. MaxWidth="35"
  72. MinWidth="35"
  73. FontSize="11"
  74. Foreground="Green"
  75. DrawLabels="True"
  76. DrawMajorBands="False"
  77. DrawMajorGridLines="True"
  78. DrawMajorTicks="True" AxisTitle="">
  79. <sciChart:NumericAxis.GrowBy>
  80. <sciChart:DoubleRange Min="0.1" Max="0.1"/>
  81. </sciChart:NumericAxis.GrowBy>
  82. </sciChart:NumericAxis>
  83. </sciChart:SciChartSurface.YAxes>
  84. <sciChart:SciChartSurface.XAxis>
  85. <sciChart:NumericAxis x:Name="numAxis" AutoRange="Always"
  86. DrawMinorGridLines="False" MajorDelta="1.0"
  87. DrawMinorTicks="False" DrawMajorBands="False" DrawMajorGridLines="False" DrawMajorTicks="False"
  88. MaxAutoTicks="1500" MinorsPerMajor="1" FlipCoordinates="False" Focusable="False"
  89. Background="LightGray" FontSize="11" DrawLabels="False" AxisTitle=" " AutoTicks="True">
  90. </sciChart:NumericAxis>
  91. </sciChart:SciChartSurface.XAxis>
  92. </sciChart:SciChartSurface>
  93. </Grid>
  94. </UserControl>