The following code throws a cryptic System.ArgumentException from the RenderAsync method \"Value does not fall within the expected range.\" If on the other hand my Canvas is
WinRTXamlToolkit.Composition namespace has this extension that works. Just call this method:
WinRTXamlToolkit.Composition
await WriteableBitmapRenderExtensions.RenderToPngStream(element);