title: wpf - bind polyline to custom class
body: <p>Does anyone know whether it is possible to bind a polyline to a collection of custom objects?</p>
  
  <p>For example, I have a class like so:</p>
  
  <pre><code>public class MyDataClass{
      public double Value { get; set; } //I'd like to map this to a polyline point's x value
      public double Position { get; set; } //I'd like to map this to a polyline point's y value
  }
  </code></pre>
  
  <p>And I'd like to bind a polyline to a collection of those objects and translate the Value property to X and the Position property to Y.</p>
  
  <p>Thanks!</p>