title: How to use RenderTargetBitmap in RunTime Components using c#
body: <p>When I call the component from JavaScript. Showing an error(an unhandled expection win32). I have used RenderTargetBitmap in RunTime Components for Windows 10 Universal Apps. For more please refer to the following code.</p>
  
  <pre><code>public void Hello() { Task.Run(() =&gt; { buttonClick(); }); }
  public async void buttonClick()
  {
      await SaveImageAsync(Window.Current.Content);
  }
  private async static Task&lt;RenderTargetBitmap&gt; SaveImage(UIElement ele)
  {
      RenderTargetBitmap renderTargetBitmap = new RenderTargetBitmap();
      await renderTargetBitmap.RenderAsync(ele);
      return renderTargetBitmap;
  }
  public static IAsyncOperation&lt;RenderTargetBitmap&gt; SaveImageAsync(UIElement ele)
  {
      return SaveImage(ele).AsAsyncOperation();
  }
  </code></pre>