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
|
Hi, I want to write a custom PropertyEditor for a property (string) inside the object (let's say of type MyObjectType) represented by the PropertyGrid. In this custom editor I need to bind the ItemsSource of a combobox a some data that is inside the same object. I tried using the UnderlyingObject.ListOfStringItems but the binding fails at runtime because the UnderlyingObject is a MultipleObjectWrapper and not the actual MyObjectType object. How can I access the actual object contents? The PropertyGrid is set to present any object from an object hierarchy with the root of the hierarchy being MyObjectType. If this scenario is not possible is there another way to get this behavior? The thing I need to achieve here is to get a combobox of items where one of the items is a "browse for file" thing that pops up a file selection dialog and after selecting a file replaces the "browse for file" item with the actual selected file name (that's why the combobox ItemsSource needs data from the actual object).
Thanks for the help, Vlad |
|