I'm very confused by the MSDN samples. And all the samples I find generally revolve around text items in a StackPanel or something similarly simple.
Given an array of numbers as the ItemsSource -
ItemsSource = { 25 , 50 , 75 }
the ItemsControl should procuce only this:
<PolyLine Points="0,25 1,50 2,75" />
As shown, each item needs to be translated into a point - where the "x" value is the item's position in the item list, and the 'y' value is the interpreted numeric value of the item itself.
If an ItemsPanelTemplate is absolutely required, I guess it would be something that would have the smallest effect over layout of a single PolyLine - a simple Grid, perhaps, without any explicit column or row definitions.
But I have no idea how to implement ItemsPanelTemplate OR ItemsPresenter OR ItemTemplate in this scenario.
Can anyone point me in the right direction?