Esempio n. 1
0
        private void SetPropertyValueCore(SceneNodeProperty parentProperty, SceneNode valueAsSceneNode)
        {
            parentProperty.SetValue(valueAsSceneNode.DocumentNode);
            if (!valueAsSceneNode.TrueTargetType.IsClass)
            {
                return;
            }
            SceneNodePropertyCollection propertyCollection = (SceneNodePropertyCollection)parentProperty.get_PropertyValue().get_SubProperties();

            propertyCollection.Rebuild();
            if (((PropertyEntryCollection)propertyCollection).get_Count() <= 0 || !((SceneNodeProperty)this.PropertyValue.get_ParentProperty()).SceneNodeObjectSet.IsViewRepresentationValid)
            {
                return;
            }
            PropertyValueEditorCommands.get_ShowExtendedPinnedEditor().Execute(null, (IInputElement)this);
        }
Esempio n. 2
0
        private void SetPropertyValueCore(SceneNodeProperty parentProperty, SceneNode valueAsSceneNode)
        {
            parentProperty.SetValue((object)valueAsSceneNode.DocumentNode);
            if (!valueAsSceneNode.TrueTargetType.IsClass)
            {
                return;
            }
            SceneNodePropertyCollection propertyCollection = (SceneNodePropertyCollection)parentProperty.PropertyValue.SubProperties;

            propertyCollection.Rebuild();
            if (propertyCollection.Count <= 0 || !((SceneNodeProperty)this.PropertyValue.ParentProperty).SceneNodeObjectSet.IsViewRepresentationValid)
            {
                return;
            }
            PropertyValueEditorCommands.ShowExtendedPinnedEditor.Execute((object)null, (IInputElement)this);
        }