Access code behind of uipath XAML file

Hi Everyone,

I am trying to take the screenshot of uipath workflow programmatically. In UI Studio we can do that by right click and save as image feature of WF4, however struggling to do it with C# code.
I would like to know is there any way in which I can access the code behind of UiPath workflow(.CS file) apart from XAML file?

I have gone though below already, need to modify it as per my need.

https://blogs.msdn.microsoft.com/flow/2011/08/16/how-to-save-wf4-workflow-definition-to-image-using-code/

@radu_bucur

This sheds some light on how to serialize and deserialize the workflow

Hey Siddheshwar!

That links are actually really helpful, I managed to get everything to work using these resources you provided.
This is the working code:

SaveWorkflowAsPicture.zip (112.8 KB)

Let me know if you need any help with the code. This has been quite fun to implement!