title: Xamarin.Forms UWP - Print Webview with pagination support
body: <p>I'm working on Xamarin.Forms based project, trying to print the webview content with pagination. </p>
  
  <p>I've referred the following link already:
  <a href="https://stackoverflow.com/questions/17049677/how-do-i-print-webview-content-in-a-windows-store-app">How do I print WebView content in a Windows Store App?</a></p>
  
  <p>But unfortunately this way is not working with Xamarin.Forms because the way demonstrated in the above link is by filling the rectangle(windows shape) using webviewbrush (both the rectangle and webviewbrush are platform dependent controls to UWP). The problem is we can't use webviewbrush to draw rectangle(Xamarin Forms shape).</p>
  
  <p>As a workaround I did the following:</p>
  
  <ul>
  <li>created a boxview in xamarin forms PCL project</li>
  <li>created a renderer for this boxview in UWP project(this will give us the windows rectangle shape) and then I did put this rectangle shape into one of the public static properties in PCL project's App.cs class to make it available for Webviewrenderer.cs class for filling this rectangle with webviewbrush.</li>
  <li>I can able to access it from webviewrenderer.cs class from UWP project but the problem is the printer dialog shows an empty page.</li>
  <li>Pagination works just fine as demonstrated in the above stack overflow link, but all pages are being empty.</li>
  </ul>
  
  <p>Apparently the problem would be with rectangle. Because the same logic is just works fine if I create a native UWP project and the printer dialog shows the webpage as well.</p>
  
  <p>Any help would be much appreciated.</p>
  
  <p>Thanks in advance!</p>