public static IEntityValue CreateMetadataValue(IEntityRuntimeModel runtimeModel, NameValuePair metadata, IUIEditorMetadataPropertiesAvailableStatus requestedProperties)
        {
            var newMetadata = new UIEditorMetadataValue(runtimeModel, new UIEditorMetadataPropertiesAvailableStatus());

            if (requestedProperties.Name)
            {
                newMetadata.Name = metadata.Name;
            }

            if (requestedProperties.Value)
            {
                newMetadata.Value = metadata.Value;
            }

            return(newMetadata);
        }
 public static IEnumerable <IEntityValue> CreateMetadataValues(IEntityValue parent, ValueEditor editor, IUIEditorMetadataPropertiesAvailableStatus requestedProperties)
 {
     foreach (NameValuePair metadataPair in editor.Metadata)
     {
         IEntityValue metadataValue = CreateMetadataValue(parent.EntityRuntime, metadataPair, requestedProperties);
         yield return(metadataValue);
     }
 }
 public UIEditorMetadataFromValueEditorProducer(IUIEditorMetadataPropertiesAvailableStatus properties)
 {
     _properties = properties;
 }