SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and now iOS Charting & Android Chart Components

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
    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.