Hey all,
I'm currently capturing the project open event to process some data, it's currently possible to determine if the project has been created from a template through the ProjectOpenMode enum, what I am trying to do is retrieve the path of template that was used but can't seem to find any events or data within the Project.Items that would point to the template path.
What I've tried:
var items = obj.Project.Items;
Checking all project items for the template name or path
var temp = Project.GetRecentProjectTemplates();
Getting the recent project templates, but this is only updated after its been used, I could work-around this by capturing it from the save event instead but it wouldn't be my first choice as it'd be a little messy
I've also tried something along the lines of:
var rtc = new RecentTemplatesControl();
rtc.SelectedTemplateChanged += OnSelectedTemplateChanged;
but naturally this didn't work because its not the actual reference to the control UI
Is there something I'm overlooking here?
Thanks,
Curtis