I am new to WPF and am rehosting the .Net Workflow Foundation v4 WorkflowDesigner class in a WPF app. Two "View" WPF UIElements which are exposed as child properties of the Designer class are mounted in two grid columns; including one View which
paints a flowchart-like diagram of the current workflow. Unfortunately, the current implementation does not support any kind of "print" capability which is a requirement for this app. The class supports a "SaveAsImage" method, but it
is hard-coded to pop a FileOpenDialog and save directly to disk; something that won't work for our application".
After reading threads in this forum and others, I have tried several techniques to grab a full-size, non-clipped "screenshot" like image of this UIElement. But unlike the WorkflowDesigner's private internal methods I've examined in Reflector,
every technique I've tried has clipped at the dimensions of the Grid column and row in which the view is mounted. (At one point, I tried duplicating the decompiled class' private code methods differing only in how I obtained the View's ContentPresenter
since I don't have access to the internal variables, but the resulting image was still clipped/truncated).
Below is one presentative method for grabbing the UIElement content as a JPeg. &nbs
View Complete Post