I want to save a visual element as a png. I\'m using the following extension methods to achieve this:
public static RenderTargetBitmap CopyAsBitmap(this Framewor