title: Custom mouse cursor size in WPF
body: <p>We are developing an application that must be used by people that may have some visual problem involving the use of kinect to move the cursor, so we need to make it bigger than usual. However, this application does not interfaces directly with kinect, so we can't use its APIs.</p>
  
  <p>We are programming in C# (.NET 4.5) using WPF. The problem is that the default cursor size cannot be bigger than 32x32 pixel or 64x64 pixel in high res devices.</p>
  
  <p>We first tried to make the actual mouse cursor invisible and then use a Graphics object,  taken using Graphics.FromHwnd(applicationWindowHandler). It succeeds to draw the image but it leaves the trail of the past cursor positions.</p>
  
  <p>Is there a way to do using the regular windows mouse cursor, or at least a way to remove the trail (like an "invalidate" method that force the current window to refresh)?</p>
  
  <p>We already tried these solutions but with no luck:</p>
  
  <p><a href="http://www.hsys.com/CustomCursorArticlePart1.htm" rel="noreferrer">www.hsys.com/CustomCursorArticlePart1.htm</a></p>
  
  <p><a href="http://www.hsys.com/CustomCursorArticlePart2.htm" rel="noreferrer">www.hsys.com/CustomCursorArticlePart2.htm</a></p>
  
  <p><a href="http://csharparticles.blogspot.it/2005/03/custom-drawing-cursors.html" rel="noreferrer">csharparticles.blogspot.it/2005/03/custom-drawing-cursors.html</a></p>