|
@@ -165,6 +165,8 @@
|
|
|
<RadioButton x:Name="ShowVerticalLine" Content="+" Width="60" ToolTip="Add Vertical Line" Checked="RadioButton_Checked" Unchecked="ShowVetical_UnChecked" GroupName="select"/>
|
|
|
<RadioButton x:Name="HoldVetical" Content="Hold" Width="60" ToolTip="Hold Vertical Line" IsEnabled="{Binding Source={x:Reference Name=ShowVerticalLine},Path=IsChecked}" />
|
|
|
<RadioButton x:Name="DeleteVertical" Content="-" Width="60" ToolTip="Delect Vertical Line" Checked="RadioButton_Checked" GroupName="select"/>
|
|
|
+ <RadioButton Content="DoubleLink" Width="100" ToolTip="Delect Vertical Line" IsChecked="{Binding IsDoubleChartLinkage,Mode=OneWay}" GroupName="linkage" Visibility="{Binding Source={x:Reference Name=DoubleChart},Path=IsChecked,Converter={StaticResource bool2VisibilityConverter}}"
|
|
|
+ micro:Message.Attach="DoubleChartLink"/>
|
|
|
</StackPanel>
|
|
|
<Grid Height="698">
|
|
|
<Grid.RowDefinitions>
|
|
@@ -199,14 +201,14 @@
|
|
|
<s:SciChartSurface.ChartModifier>
|
|
|
<s:ModifierGroup s:MouseManager.MouseEventGroup="myCustomGroup">
|
|
|
<s:RubberBandXyZoomModifier x:Name="rubberBandZoomModifier" ExecuteOn="MouseLeftButton" IsAnimated="True"
|
|
|
- IsEnabled="{Binding Source={x:Reference Name=IsEnableZoom},Path=IsChecked}" IsXAxisOnly="False" ZoomExtentsY="False" ReceiveHandledEvents="True"/>
|
|
|
- <s:CursorModifier IsEnabled="True" ShowAxisLabels="True" ShowTooltip="False" ShowTooltipOn="MouseOver" SourceMode="AllVisibleSeries" ReceiveHandledEvents="True"/>
|
|
|
+ IsEnabled="{Binding Source={x:Reference Name=IsEnableZoom},Path=IsChecked}" IsXAxisOnly="False" ZoomExtentsY="False"/>
|
|
|
+ <s:CursorModifier IsEnabled="True" ShowAxisLabels="True" ShowTooltip="False" ShowTooltipOn="MouseOver" SourceMode="AllVisibleSeries" ReceiveHandledEvents="{Binding IsDoubleChartLinkage}"/>
|
|
|
<s:ZoomExtentsModifier x:Name="zoomExtentsModifier" ExecuteOn="MouseDoubleClick" XyDirection="XYDirection"/>
|
|
|
<s:ZoomPanModifier x:Name="zoomPanModifier" ClipModeX="None" ExecuteOn="MouseLeftButton"
|
|
|
IsEnabled="{Binding Source={x:Reference Name=IsEnablePan},Path=IsChecked}" XyDirection="{Binding Direction}"
|
|
|
- ZoomExtentsY="False" ReceiveHandledEvents="True"/>
|
|
|
+ ZoomExtentsY="False" />
|
|
|
<s:RolloverModifier x:Name="rolloverModifier" SourceMode="AllVisibleSeries" DrawVerticalLine="False"
|
|
|
- FontFamily="Arial,SimSun" FontSize="9" IsEnabled="True" ShowAxisLabels="False" SnapsToDevicePixels="False" UseInterpolation="False" ReceiveHandledEvents="True"/>
|
|
|
+ FontFamily="Arial,SimSun" FontSize="9" IsEnabled="True" ShowAxisLabels="False" SnapsToDevicePixels="False" UseInterpolation="False" ReceiveHandledEvents="{Binding IsDoubleChartLinkage}"/>
|
|
|
|
|
|
<s:MouseWheelZoomModifier XyDirection="{Binding Direction}"/>
|
|
|
<!--<s:SeriesSelectionModifier IsEnabled="{Binding Source={x:Reference Name=SelectSeries}, Path=IsChecked}">
|
|
@@ -223,18 +225,18 @@
|
|
|
</Style>
|
|
|
</s:SeriesSelectionModifier.SelectedSeriesStyle>
|
|
|
</s:SeriesSelectionModifier>-->
|
|
|
- <s:VerticalSliceModifier Name="sliceModifier" ReceiveHandledEvents="True"/>
|
|
|
+ <s:VerticalSliceModifier Name="sliceModifier" />
|
|
|
<s:AnnotationCreationModifier x:Name="annotationCreation" IsEnabled="{Binding Source={x:Reference Name=ZoomByLine},Path=IsChecked}" AnnotationType="{x:Type s:LineArrowAnnotation}"
|
|
|
AnnotationStyle="{StaticResource lineArrowAnnotationStyle}" AnnotationCreated="OnAnnotationCreated"/>
|
|
|
</s:ModifierGroup>
|
|
|
</s:SciChartSurface.ChartModifier>
|
|
|
</s:SciChartSurface>
|
|
|
<s:SciChartSurface x:Name="syncChart" RenderableSeries="{Binding SynSelectedData}" Grid.Row="1" s:ThemeManager.Theme="ExpressionDark"
|
|
|
- s:SciChartGroup.VerticalChartGroup="SyncedChartsSameAxisSizes" Visibility="Hidden" Grid.ColumnSpan="2">
|
|
|
+ Visibility="Hidden" Grid.ColumnSpan="2">
|
|
|
<!-- Create an X Axis -->
|
|
|
<s:SciChartSurface.XAxis>
|
|
|
- <s:NumericAxis DrawMinorGridLines="False" DrawMinorTicks="False" DrawMajorGridLines="False"
|
|
|
- VisibleRange="{Binding VisibleRangeTime,Mode=TwoWay}" LabelProvider="{Binding MultiLineLabel}" DrawMajorBands="False"/>
|
|
|
+ <s:NumericAxis DrawMinorGridLines="False" DrawMinorTicks="False" DrawMajorGridLines="False"
|
|
|
+ LabelProvider="{Binding MultiLineLabel}" DrawMajorBands="False"/>
|
|
|
</s:SciChartSurface.XAxis>
|
|
|
<!-- Create a Y Axis -->
|
|
|
<s:SciChartSurface.YAxis>
|
|
@@ -246,15 +248,15 @@
|
|
|
</s:SciChartSurface.YAxis>
|
|
|
<s:SciChartSurface.ChartModifier>
|
|
|
<s:ModifierGroup s:MouseManager.MouseEventGroup="myCustomGroup">
|
|
|
- <s:RubberBandXyZoomModifier ExecuteOn="MouseLeftButton" IsAnimated="True" ReceiveHandledEvents="True" Tag="SecondYAxis"
|
|
|
+ <s:RubberBandXyZoomModifier ExecuteOn="MouseLeftButton" IsAnimated="True" Tag="SecondYAxis"
|
|
|
IsEnabled="{Binding Source={x:Reference Name=IsEnableZoom},Path=IsChecked}" IsXAxisOnly="False" ZoomExtentsY="False"/>
|
|
|
- <s:CursorModifier IsEnabled="True" ShowAxisLabels="True" ShowTooltip="False" ShowTooltipOn="MouseOver" SourceMode="AllVisibleSeries"/>
|
|
|
- <s:ZoomExtentsModifier ExecuteOn="MouseDoubleClick" XyDirection="XYDirection" />
|
|
|
+ <s:CursorModifier IsEnabled="True" ShowAxisLabels="True" ShowTooltip="False" ShowTooltipOn="MouseOver" SourceMode="AllVisibleSeries" ReceiveHandledEvents="{Binding IsDoubleChartLinkage}" Tag="SecondYAxis"/>
|
|
|
+ <s:ZoomExtentsModifier ExecuteOn="MouseDoubleClick" XyDirection="XYDirection" Tag="SecondYAxis" />
|
|
|
<s:ZoomPanModifier ClipModeX="None" ExecuteOn="MouseLeftButton"
|
|
|
IsEnabled="{Binding Source={x:Reference Name=IsEnablePan},Path=IsChecked}" XyDirection="{Binding Direction}"
|
|
|
- ZoomExtentsY="False" ReceiveHandledEvents="True" Tag="SecondYAxis"/>
|
|
|
+ ZoomExtentsY="False" Tag="SecondYAxis"/>
|
|
|
<s:RolloverModifier SourceMode="AllVisibleSeries" DrawVerticalLine="False"
|
|
|
- FontFamily="Arial,SimSun" FontSize="9" IsEnabled="True" ShowAxisLabels="False" SnapsToDevicePixels="False" UseInterpolation="False" ReceiveHandledEvents="True" Tag="SecondYAxis"/>
|
|
|
+ FontFamily="Arial,SimSun" FontSize="9" IsEnabled="True" ShowAxisLabels="False" SnapsToDevicePixels="False" UseInterpolation="False" ReceiveHandledEvents="{Binding IsDoubleChartLinkage}" Tag="SecondYAxis"/>
|
|
|
<s:MouseWheelZoomModifier XyDirection="{Binding Direction}"/>
|
|
|
<!--<s:SeriesSelectionModifier IsEnabled="{Binding Source={x:Reference Name=SelectSeries}, Path=IsChecked}" Tag="SecondYAxis">
|
|
|
<s:SeriesSelectionModifier.SelectedSeriesStyle>
|
|
@@ -270,9 +272,18 @@
|
|
|
</s:SeriesSelectionModifier.SelectedSeriesStyle>
|
|
|
</s:SeriesSelectionModifier>-->
|
|
|
<s:AnnotationCreationModifier IsEnabled="{Binding Source={x:Reference Name=ZoomByLine},Path=IsChecked}" AnnotationType="{x:Type s:LineArrowAnnotation}"
|
|
|
- AnnotationStyle="{StaticResource lineArrowAnnotationStyle}" AnnotationCreated="OnAnnotationCreated"/>
|
|
|
+ AnnotationStyle="{StaticResource lineArrowAnnotationStyle}" AnnotationCreated="OnAnnotationCreated" Tag="SecondYAxis"/>
|
|
|
</s:ModifierGroup>
|
|
|
</s:SciChartSurface.ChartModifier>
|
|
|
+ <s:SciChartSurface.Style>
|
|
|
+ <Style TargetType="s:SciChartSurface">
|
|
|
+ <Style.Triggers>
|
|
|
+ <DataTrigger Binding="{Binding IsDoubleChartLinkage}" Value="True">
|
|
|
+ <Setter Property="s:SciChartGroup.VerticalChartGroup" Value="SyncedChartsSameAxisSizes"/>
|
|
|
+ </DataTrigger>
|
|
|
+ </Style.Triggers>
|
|
|
+ </Style>
|
|
|
+ </s:SciChartSurface.Style>
|
|
|
</s:SciChartSurface>
|
|
|
</Grid>
|
|
|
<StackPanel Orientation="Horizontal">
|