title: equivalent CreateGraphics in wpf
body: <p>So, I've used winForms .CreateGraphics to draw a variety of different things, from lines to boxes to images. It was very snappy and responsive.</p>
  
  <p>I am trying to learn WPF in C#</p>
  
  <p>I found that WPF allows me to "add" rectangle objects to a canvas which will display them properly. HOWEVER, I am drawing hundreds of thousands of rectangles at times, and the draw rate can become exceedingly slow, and the UI becomes less snappy when I move even 1 of the rectangles.</p>
  
  <p>Painting directly onto an element in winForms was not very fast, but it was consistent regardless of how much I painted.</p>
  
  <p>Is there a similar solution to doing this in WPF?</p>
  
  <p>I tried adding a linq to <code>System.Drawing</code>, which gave me a <code>Graphics</code> object, but none of the wpf elements i tried have the <code>.CreateGraphics()</code> method.</p>