This project is read-only.

WPF Example 2

Using XAML binding only, no PlotModel.

You can bind the ItemsSource property and set DataFieldX and DataFieldY, this will use reflection (much slower) to generate the data series.
When you don't specify axes, default axes will be generated.
Note that the Plot control is not observing changes in your dataset.

  <oxy:LineSeries ItemsSource="{Binding MyCollection}" DataFieldX="X" DataFieldY="Y"/>

To get better performance you can define a Mapper Func on the LineSeries, or implement IDataPointProvider on the items in your ItemsSource.

Last edited Feb 12, 2011 at 11:12 PM by objo, version 4


No comments yet.