SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and now iOS Charting & Android Chart Components
Please use the forums below to ask questions about SciChart. Take a moment to read our Question asking guidelines on how to ask a good question and our support policy. We also have a tag=SciChart on Stackoverflow.com where you can earn rep for your questions!
Please note: SciChart team will only answer questions from customers with active support subscriptions. Expired support questions will be ignored. If your support status shows incorrectly, contact us and we will be glad to help.
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 v220.127.116.117.
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.