From the Axes documentation:
Adding axes in XAML
<oxy:Plot Title="Linear axes">
<oxy:LinearAxis Position="Bottom" Minimum="-20" Maximum="80" />
<oxy:LinearAxis Position="Left" Minimum="-10" Maximum="10" />
Adding axes to a PlotModel
var model=new PlotModel();
But, what if I want to bind from the XAML to an axis ?!
more to the point, the reason was I wanted to see if I can make two charts share an axis, so moving one will move the other ...
Nov 6, 2013 at 10:13 PM
To do this with binding, we need to add
dependency properties (one-way).
In the current implementation, you can subscribe to the AxisChanged event on the axis (not yet available on the Wpf.Axis class), read the ActualMinimum and ActualMaximum and use the Zoom(x0,x1) method to set the range on the other axis.
The AxisChanged routed event is registered at
Also remember to invalidate the plot every time the values are changed.