I have a Chart with two Y-Axes, one on the left and one on the right for a SeriesvalueModifier.
i need to bind the VisibleRange to a Property in the ViewModel. Everything works fine, except for if i zoom via the MouseWheelZoomModifier.
It looks like the Chart gets “stretched” in Y direction. I guess the modifier zooms on both axes, so the property they are both bound to gets two updates, one for each axis.
When i bind the VisibleRange of Axis[A] to theVisibleRange of Axis[B] which is bound to the property also won’t work.
Do you have any idea how this could be fixed ?
what i want to achieve is this behavior:
Axis[A]
<s:NumericAxis
x:Name="NumericAxis_Mass"
x:Key="NumericAxis_Mass"
Id="NumericAxis_Mass"
AxisTitle="{ext:Localization Chart_Axis_PartialPressure}"
GrowBy="0.1,0.1"
VisibleRange="{Binding YVisibleRange,
Mode=TwoWay,
UpdateSourceTrigger=PropertyChanged,
NotifyOnSourceUpdated=True,
NotifyOnTargetUpdated=True}"
AutoRange="{Binding AnalysesAutoRange_y,
Mode=TwoWay,
UpdateSourceTrigger=PropertyChanged,
NotifyOnSourceUpdated=True,
NotifyOnTargetUpdated=True}"
AxisAlignment="Left"
Style="{StaticResource Chart.NumericAxis.Style}" />
Axis[B]
<s:NumericAxis
x:Key="NumericAxis_Mass_Empty"
x:Name="NumericAxis_Mass_Empty"
GrowBy="0.1,0.1"
TextFormatting="0.00E+00"
VisibleRange="{Binding YVisibleRange,
Mode=TwoWay,
UpdateSourceTrigger=PropertyChanged,
NotifyOnSourceUpdated=True,
NotifyOnTargetUpdated=True}"
AutoRange="{Binding AnalysesAutoRange_y,
Mode=TwoWay,
UpdateSourceTrigger=PropertyChanged,
NotifyOnSourceUpdated=True,
NotifyOnTargetUpdated=True}"
AxisAlignment="Right"
Style="{StaticResource Chart.NumericAxis.Style}"
DrawLabels="False"
DrawMajorBands="False"
DrawMajorGridLines="False"
DrawMajorTicks="False"
DrawMinorGridLines="False"
DrawMinorTicks="False"
Margin="35,0,0,0"
Width="auto" />
- Dirk Heyne asked 7 years ago
- last edited 7 years ago
- You must login to post comments
Please login first to submit.