Pre loader

AutoTicks and MajorDelta binding

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums

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.

Try SciChart Today

Start a trial and discover why we are the choice
of demanding developers worldwide

Start TrialCase Studies