I’ve been tackling with an issue this morning to store the drawing on an InkCanvas as an image in a StorageFile. After hunting online for possible resolutions, I came across Mike Taulty’s blog post from a month ago which outlined a very similar issue.
For some of my older projects, I created an extension that uses RenderTargetBitmap to render a UI element out to an image in a StorageFile. Attempting to use this same method on the InkCanvas however has a different effect, one that wouldn’t work for my app (possibly wouldn’t be desired for any app). The issue is that when you call the RenderAsync method and pass through your InkCanvas or a parent element of the InkCanvas in your XAML, the end result is a blank saved image and your InkCanvas blanks itself too until you resize the app’s window, at which point, the drawing comes back.