示例#1
0
        private SceneNodeProperty CreateProperty(string propertyPath)
        {
            if (this.keySplineProperty.IsEmpty)
            {
                return((SceneNodeProperty)null);
            }
            PropertyReference propertyReference = (PropertyReference)null;

            try
            {
                if (this.keySplineProperty != null)
                {
                    propertyReference = new PropertyReference((ITypeResolver)this.keySplineProperty.SceneNodeObjectSet.ProjectContext, propertyPath);
                }
            }
            catch (Exception ex)
            {
            }
            SceneNodeProperty sceneNodeProperty = (SceneNodeProperty)null;

            if (propertyReference != null)
            {
                sceneNodeProperty = this.keySplineProperty.SceneNodeObjectSet.CreateSceneNodeProperty(this.keySplineProperty.Reference.Append(propertyReference), (AttributeCollection)null);
            }
            sceneNodeProperty.OverrideValueEditorParameters(new ValueEditorParameters(this.keySplineProperty.Attributes));
            return(sceneNodeProperty);
        }