Pre loader

Binding Y axis Visible Range

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

0
0

Hi,

I am looking for a way to bind the VisibleRange property, What I am doing is

<s:NumericAxis.VisibleRange>
     <s:DoubleRange Min="{Binding LowestValue, UpdateSourceTrigger=PropertyChanged}" Max="{Binding LowestValuePlusRange, UpdateSourceTrigger=PropertyChanged}"/>
 </s:NumericAxis.VisibleRange>

I get an error “A binding can not be set on the Min property of VisibleRange”.

Help me on how I should bind this please.

  • You must to post comments
0
0

Hi Kilosa,

You need to bind the whole range. For instance:

<!-- View -->
<s:NumericAxis VisibleRange="{Binding ViewmodelVisibleRange, Mode=TwoWay}"/>

and

// Viewmodel
public DoubleRange ViewmodelVisibleRange 
{ 
     get; 
     set; 
}     

Best regards,
Andrew

  • Kilosa Magali
    Thanks Andrew, I applied that to Y axis and it binds well except it zooms only in X axis. Will you please point me on how I should proceed that it zooms in both axis and reset to my new visible ranges?
  • Andrew Burnett-Thompson
    I will need some more info from you to do this. Can you either post a full code sample and/or a video of what’s occurring?
  • 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