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.
- Garrett McCardle asked 8 years ago
- You must login to post comments
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
- Andrew Burnett-Thompson answered 8 years ago
- You must login to post comments
Please login first to submit.