private static IApprovalWriter CreateControlWpfWriter(Func<Control> action) { return new ImageWriter(f => WpfUtils.ScreenCaptureInStaThread(f, action)); }