摘要:
最近在实践的过程中,发现经常需要对微软提供的property grid 定制自己的扩展。在查阅了一些文档之后,发现这种扩展还是很容易并且比较有意思的。这里主要是继承UITypeEditor来扩展。比较简单,贴一些可以用来示例的代码publicclassMyUIEditor:UITypeEditor(publicoverrideUITypeEditorEditStyleGetEditStyle(ITypeDescriptorContextcontext){returnSystem.Drawing.Design.UITypeEditorEditStyle.DropDown;}//这里有3种edit 阅读全文
posted @ 2012-02-24 21:08
ChinaInterLude
阅读(419)
评论(0)
推荐(0)

浙公网安备 33010602011771号