Пример #1
0
        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);
        }
Пример #2
0
 public static void GoToXaml(SceneXamlDocument document, List <DocumentNode> targetNodes)
 {
     GoToXamlCommand.GoToXaml((SceneView)null, document, targetNodes, false, true);
 }