title: Very simple drawing on WPF elements
body: <p>I must draw many lines on a WPF usercontrol or regular WPF control (like Image / Canvas).
  The positions and sizes of the lines stay, but the colors change over time.</p>
  
  <ul>
  <li>about 2000 lines</li>
  <li>there's no need to reference them or interact with them later, as it would be possible with shapes</li>
  <li>on color update all lines will be drawn again (that's how I did it in WinForms).</li>
  <li>updates happen only on user action, so like every few seconds up to no change in days</li>
  <li>an update should be quick to not impact program performance much</li>
  </ul>
  
  <p>Using a derivation from FrameworkElement, having to override two properties is so much overhead for such a simple task IMHO.</p>
  
  <p>I'd like to accomplish it with as less code as possible, and best performance regarding that it must only be seen on the screen, without events or whatever interaction.</p>
  
  <p>In WinForms it was so easy: you instatiate a graphics object and draw onto it. There I drew the lines on a bitmap and assigned the bitmap to an WinForms-Image. I even had the possibility to scale the lines by changing the size of the Image.</p>
  
  <p>I understand that there's a difference between direct drawing (WinForms) and retained drawing (WPF). May it be retained as much as it wants, there should be a simple solution to create a bunch of lines and assign them to a usercontrol or a regular WPF control!?</p>
  
  <p>Thanks for any help.</p>
  
  <p>Julian</p>