public override void Execute() { List <DocumentNode> targetNodes = new List <DocumentNode>(); foreach (SceneElement sceneElement in this.SceneViewModel.ElementSelectionSet.Selection) { targetNodes.Add(sceneElement.DocumentNode); } foreach (BehaviorBaseNode behaviorBaseNode in this.SceneViewModel.BehaviorSelectionSet.Selection) { targetNodes.Add(behaviorBaseNode.DocumentNode); } GoToXamlCommand.GoToXaml(this.SceneViewModel.XamlDocument, targetNodes); }
public static void GoToXaml(SceneXamlDocument document, List <DocumentNode> targetNodes) { GoToXamlCommand.GoToXaml((SceneView)null, document, targetNodes, false, true); }