2011-10-03 29 views

回答

7

有很多资源可用于显示ICustomTypeDescriptor接口的不同用例,但简而言之,典型用例是在标准TypeDescriptor提供的内容外提供自定义类型描述。该界面很少实现,无需返回自定义成员描述符,如自定义PropertyDescriptor

Type Descriptor Overview from the MSDN是一个很好的资源,可能有助于进一步明确目的和用法。

+0

还不清楚,你能给出任何代码示例吗? –

+1

以下是使用示例:http://blogs.msdn.com/b/silverlight_sdk/archive/2011/04/26/binding-to-dynamic-properties-with-icustomtypeprovider-silverlight-5-beta.aspx – Maxence

+0

看起来你会在前面的例子中混淆ICustomTypeDescriptor和ICustomeTypeProvider。 –

相关问题