SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and now iOS Charting & Android Chart Components
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 v22.214.171.1247.
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.
Please login first to submit.