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