SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and now iOS Charting & Android Chart Components

Answered
0
0

Hello,

I have both the AutoTicks and MajorDelta property on a NumericAxis bound to my viewmodel. If I start with AutoTick = false and change the MajorDelta, then the major delta on the axis changes as expected.

If I toggle AutoTick to true and then back to false the MajorDelta binding no longer works (it stays at the value set by auto).

I’m currently using v3.42.0.677.

Thanks.

  • You must to post comments
Best Answer
0
0

Hi Garrett,

I’m guessing but I believe this problem is related to Dependency Property Precedence in WPF.

Internally to SciChart when AutoTicks=True, we set the value of MajorDelta and MinorDelta properties in code. This clears any OneWay bindings that exist (as set local value has a higher precedence than Binding).

If however, you use a TwoWay binding between MajorDelta/MinorDelta and your ViewModel, then the updated local value will be passed to the ViewModel when SciChart changes it and the binding preserved.

Please try it and let me know if you need further assistance.

Best regards,
Andrew

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.