Попробуйте, это работает для меня. В вашем адаптере
Animation animation = AnimationUtils.loadAnimation (context, R.anim.bottom_up); holder.itemView.startAnimation (анимация);
PropertyDescriptorCollection props = TypeDescriptor.GetProperties(thisType);
Как отступление: это не будет включать ваши настройки ICustomTypeDescriptor
, но будет включать любые настройки, выполненные с помощью TypeDescriptionProvider
.
(редактировать)
В качестве второго шага - вы также можете настроить PropertyGrid
, предоставив TypeConverter
- гораздо проще, чем ICustomTypeDescriptor
или TypeDescriptionProvider
- например:
[TypeConverter(typeof(FooConverter))]
class Foo { }
class FooConverter : ExpandableObjectConverter
{
public override PropertyDescriptorCollection GetProperties(
ITypeDescriptorContext context, object value, Attribute[] attributes)
{
// your code here, perhaps using base.GetPoperties(
// context, value, attributes);
}
}