
PropertyGrid
文章平均质量分 79
kissjob
这个作者很懒,什么都没留下…
展开
-
PropertyGrid, Difference between ComponentModel reflection (e.g PropertyDescriptor) and standard ref
PropertyDescriptor:提供类上的属性的抽象化。 发现属性 (Property) 的属性 (Attribute) 并提供对属性 (Property) 元数据的访问。Use PropertyInfo is more efficient than PropertyDescriptor and easier to use.PropertyDescripto原创 2010-09-14 16:54:00 · 713 阅读 · 0 评论 -
Class Design: 一些有用的Attribute
[Description("Damping calculation method"), CategoryAttribute("General propeller data")][TypeConverter(typeof(OptionConverter))][Range(0.0, 1.0, ErrorMessage = "PitchRatio must be between 0 and 1")]原创 2010-09-14 16:34:00 · 530 阅读 · 0 评论 -
TypeConverter in PropertyGrid & Datagrid
自定义TypeConverter:可以用在Propertygrid或者Datagrid中1. public class UnitTypeConverter : TypeConverter { public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)原创 2011-11-24 17:01:14 · 1164 阅读 · 0 评论