Esempio n. 1
0
        public EditContext CreateContextLinkedToParent(NodeViewPair parentElement)
        {
            EditContext editContext = new EditContext(this)
            {
                ParentElement = parentElement
            };

            editContext.Freeze();
            return(editContext);
        }
Esempio n. 2
0
 public EditContext(EditContext oldContext)
 {
     this.parentElement        = oldContext.parentElement;
     this.sceneViewModel       = oldContext.sceneViewModel;
     this.editingContainerPath = oldContext.editingContainerPath;
     this.viewScope            = oldContext.viewScope;
     this.timeline             = oldContext.timeline;
     this.trigger                    = oldContext.trigger;
     this.stateTarget                = oldContext.stateTarget;
     this.transitionTarget           = oldContext.transitionTarget;
     this.stateStoryboardTarget      = oldContext.stateStoryboardTarget;
     this.transitionStoryboardTarget = oldContext.transitionStoryboardTarget;
     if (oldContext.pinnedStates != null)
     {
         VisualStateSceneNode[] newArray = new VisualStateSceneNode[oldContext.pinnedStates.Length];
         oldContext.CopyPinnedStatesTo(newArray, (VisualStateSceneNode)null);
         this.pinnedStates = newArray;
     }
     this.isHidden                = oldContext.isHidden;
     this.lockedInsertionPoint    = oldContext.lockedInsertionPoint;
     this.lastPrimarySelectedPath = oldContext.lastPrimarySelectedPath;
 }