title: WPF forcing redraw of canvas
body: <p>Okay, in windows forms you can use <code>.refresh()</code> to cause a redraw event on an element. Is there a similar solution in WPF?</p>
  
  <p>An explanation of what I'm doing, I'm drawing a maze on a canvas object, and would like to watch as the maze is drawn (so I can see progress) instead of waiting 28 min for a solution to suddenly appear. I am drawing blocks on the canvas with a series of <code>Rectangle</code>s. Should the refresh be on the rectangle or the canvas?</p>
  
  <p>Here is a recent output:
  <a href="https://imgur.com/ftFOv" rel="noreferrer">http://imgur.com/ftFOv</a></p>
  
  <p>I'd like a solution in c# if that is possible. Thanks.</p>