I'm creating an object that will be applied to a chart and I'm wanting to bind a property to a property in that object.
Here is the property I need to bind (TimeSpanRange) and the property in the object I need to bind it to (VisibleRange):
private TimeSpanRange _timeSpanRange = new TimeSpanRange(new TimeSpan(0), new TimeSpan(1, 30, 0));
public TimeSpanRange TimeSpanRange
{
get { return _timeSpanRange; }
set
{
_timeSpanRange = value;
OnPropertyChanged();
}
}
XAxes.Add(new TimeSpanAxisViewModel()
{
AxisTitle = "Time",
VisibleRange = TimeSpanRange // TODO: Bind this property
});