Access code behind of uipath XAML file

activities
studio

#1

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.

@radu_bucur


#2

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

https://docs.microsoft.com/en-us/dotnet/framework/windows-workflow-foundation/serializing-workflows-and-activities-to-and-from-xaml


#3

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!