
public interface IKnowledgeGraphInvestigationPane
Public Interface IKnowledgeGraphInvestigationPane
//Confirm if investigation exists as a project item KnowledgeGraphInvestigationProjectItem investigationItem = Project.Current.GetItems<KnowledgeGraphInvestigationProjectItem>().FirstOrDefault( item => item.Name.Equals("myInvestigation")); if (investigationItem != null) { KnowledgeGraphInvestigation investigation = await QueuedTask.Run(() => investigationItem.GetInvestigation()); // see if a view is already open that references the same investigation foreach (var investigationPane in ProApp.Panes.OfType<IKnowledgeGraphInvestigationPane>()) { //if there is a match, activate the view if (investigationPane.InvestigationView.Investigation == investigation) { (investigationPane as Pane).Activate(); return; } } }
Target Platforms: Windows 11, Windows 10