Please, append property PropertyName in the class PropertyItem.
I'm need this property in the ResolveEditor metod of my CustomEditor (inherited from ITypeEditor) for reading advanced custom attributes.
I'm need this property in the ResolveEditor metod of my CustomEditor (inherited from ITypeEditor) for reading advanced custom attributes.
public FrameworkElement ResolveEditor(PropertyItem propertyItem)
{
Type valueType = propertyItem.Instance.GetType();
System.Reflection.PropertyInfo prop = valueType.GetProperty(propertyItem.PropertyName);
MyCustomAttribute attr = Attribute.GetCustomAttribute(prop, typeof(MyCustomAttribute)) as MyCustomAttribute;
...
}