Quantcast
Channel: wpftoolkit Discussions Rss Feed
Viewing all articles
Browse latest Browse all 2157

New Post: PropertyName in Xceed.Wpf.Toolkit.PropertyGrid.PropertyItem

$
0
0
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.
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;
   ...
}

Viewing all articles
Browse latest Browse all 2157

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>