2011-10-03 31 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。 –

相關問題