I have build a custom control. One of it's property is a complex property, say it is LinkData. LinkData has some subproperties.
I used the recommandations given by Nikhil Kotary in it's book and made the LinkData readonly and forcing the user to acces the sub properties but not replacing LinkData.
I also attached a custom UITypeEditor to LinkData. It works fine, the form popup, I can use it. But when closing, LinkData subproperties are not updated. I have no error message.
After investigating I discovered this is because LinkData has a getter, but no setter. So I must find a way to tell EditValue() function not to copy LinkData, but rather it's sub properties that have read/write access.
The problem is that I don't know where to do this.
Amethyste
Member
93 Points
62 Posts
complex property and custor UITypeEditor
Mar 25, 2008 10:20 AM|LINK
Hi,
I have build a custom control. One of it's property is a complex property, say it is LinkData. LinkData has some subproperties.
I used the recommandations given by Nikhil Kotary in it's book and made the LinkData readonly and forcing the user to acces the sub properties but not replacing LinkData.
I also attached a custom UITypeEditor to LinkData. It works fine, the form popup, I can use it. But when closing, LinkData subproperties are not updated. I have no error message.
After investigating I discovered this is because LinkData has a getter, but no setter. So I must find a way to tell EditValue() function not to copy LinkData, but rather it's sub properties that have read/write access.
The problem is that I don't know where to do this.
Does anybody know the answer?
thanks
UITypeEditor complex property