I am looking to expand the specific node in flowchart thru code. Is there any way to achieve this. I was going thru some post & found something ModelItemExtensions.
modelService = wd.Context.Services.GetService<ModelService>();
//IEnumerable<ModelItem> activityCollection = modelService.Find(modelService.Root, typeof(Activity));
I am getting the modelitem collection as mentioned in below code instead of using ModelService.Find() method
ModelItemCollection modelItems = modelService.Root.Content.Collection;
I needed to use above code as Find() method was hanging the app. I am creating the instance of UserControl inside my activity & that seems to hang the Find() method.
Above code works for Activity but not for FlowChart (I am getting the collection using modelService.Root.Content.Collection).
Any suggestions would be appreciable.
View Complete Post