This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
I've been struggling a bit with using Editors in a case like the following. Suppose you have class Person with a Pet property and there are five instances of pets. If SelectedObject is set to a Person, I'd like the Pet property to show as a ComboBox in which the five pets appear and allow the user to select one and assign it. Am I missing something? Kevin Donn |
|
|
The behaviour you describe for TypeEditor is the default behaviour for reference types (classes), but you can override this by setting TypeEditor.TemplateBindingMode to WrappedObject. This will force the TypeEditor to use the PropertyEditor behaviour, so that you can replace the Pet rather than modifying it. |
|
|
Yep. Definitely a case of RTFM. Works great. Thanks! kd |
|