UI Type Editor question


Author
Message
StrataFrame Team
S
StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
Whatever value you return from the EditValue() override within the type editor will be set back in the property sheet, but the value will not be set on the object.  Generally, you will need to use this:

context.PropertyDescriptor.SetValue(context.Instance, "MyValue")

Which uses the property descriptor to set the actual value on the design-time instance, which is then detected and serialized into the .designer.* file.

Paul Chase
Paul Chase
Advanced StrataFrame User (806 reputation)Advanced StrataFrame User (806 reputation)Advanced StrataFrame User (806 reputation)Advanced StrataFrame User (806 reputation)Advanced StrataFrame User (806 reputation)Advanced StrataFrame User (806 reputation)Advanced StrataFrame User (806 reputation)Advanced StrataFrame User (806 reputation)Advanced StrataFrame User (806 reputation)
Group: Forum Members
Posts: 414, Visits: 2.8K
I am hoping someone has run into this.

I have a property of type string that I created a custom ui type editor for. This part is working great the editor pops up and the text is reflected back on the property sheet for that property. However the changes to the property value are not serialized back to the class unless I manually type something on the property sheet. 

Even though the text I type in custom editor is being reflected back to the property sheet property value some event or something is not firing to know that the value of that property has changed. 

Any ideas?

Paul

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search