Ejemplo n.º 1
0
        protected override void Initialize()
        {
            base.Initialize();
            ILayoutDesigner designerForChild = this.ActiveSceneViewModel.GetLayoutDesignerForChild(this.EditingElement, true);

            this.initialRect      = designerForChild.GetChildRect(this.BaseEditingElement);
            this.initialOverrides = designerForChild.ComputeOverrides(this.BaseEditingElement);
            this.transformHelper  = PathElement.TryCreateTransformHelper(this.EditingElement, this.StartSize);
        }
        protected override void Initialize()
        {
            base.Initialize();
            ILayoutDesigner designerForChild = this.ActiveSceneViewModel.GetLayoutDesignerForChild(this.EditingElementSet.PrimaryElement, true);

            this.pathTransformHelpers.Clear();
            foreach (SceneElement element in this.EditingElementSet.Elements)
            {
                this.startWidthSet[element]     = element.IsSet(BaseFrameworkElement.WidthProperty) == PropertyState.Set;
                this.startHeightSet[element]    = element.IsSet(BaseFrameworkElement.HeightProperty) == PropertyState.Set;
                this.initialOverrides[element]  = designerForChild.ComputeOverrides((BaseFrameworkElement)element);
                this.initialRects[element]      = designerForChild.GetChildRect((BaseFrameworkElement)element);
                this.initialTransforms[element] = new CanonicalDecomposition(this.StartTransformsDictionary[element]);
                PathElement.PathTransformHelper transformHelper = PathElement.TryCreateTransformHelper(element, this.StartBoundsDictionary[element].Size);
                if (transformHelper != null)
                {
                    this.pathTransformHelpers[element] = transformHelper;
                }
            }
        }