Пример #1
0
        public object Convert(object value, System.Type targetType,
                              object parameter, System.Globalization.CultureInfo culture)
        {
            List <string> textProperties = new List <string>();

            textProperties.Add(string.Empty);

            IContentItemDefinition contentItemDefinition =
                value as IContentItemDefinition;

            if (contentItemDefinition != null)
            {
                IEntityType entityType =
                    contentItemDefinition.DataType as IEntityType;
                if (entityType != null)
                {
                    foreach (IPropertyDefinition p in
                             CustomEditorHelper.GetTextPropertiesForEntity(entityType))
                    {
                        textProperties.Add(p.Name);
                    }
                }
            }
            return(textProperties);
        }