I have a workflow with multiple activities that I'm editing on VS2017. This workflow is here:
C:/Repo/Workflows/ProjectXyz/Foo/ThisFile.xaml
This workflow is populated with activities, one of those activities is of type MyPathActivity
. This activity has a button. When that button is clicked (on design time from ThisFile.xaml
), I want it to show a MessageBox
with the text C:/Repo/Workflows/ProjectXyz/Foo/ThisFile.xaml
, but I don't know how to get that path.
How can I get the path to the xaml file at design time?
All that I've tried got me to the VS debugger path, the project's root path,... but I need the full path to the xaml that I'm editing.