MVVM Line Graph and Binding

Jan 10, 2011 at 2:58 PM

Looking at the samples, if I have a DependencyProperty that is an EnumerableDataSource<StockInfo> MyStockInfo, how do I bind it to the ChartPlotter so when the enumerable source is populated, the graph updates? Here is the xaml for the graph. I would expect to be able to set a property on the HorizontalAxis like so: Source={Binding MyStockInfo}. However there is no "Source" property on the HorizontalAxis. Thanks in advance for any help.


<c:ChartPlotter Name="plotter">
<c:HorizontalDateTimeAxis Name="dateAxis"/>

<c:Header FontFamily="Georgia" Content="Stock exchange rate"/>
<c:VerticalAxisTitle FontFamily="Georgia" Content="Stock index value"/>
<c:HorizontalAxisTitle FontFamily="Georgia" Content="Date"/>
Jan 10, 2011 at 4:28 PM

I was able to get things working from following this thread.