Posted 14 years ago
by Mary Fontana
-
Rudolph Technologies
![Avatar](https://secure.gravatar.com/avatar/0fd588160949840bf7188e3c2c588825.jpg?s=64&d=identicon&r=g)
I have defined properites that use
[Editor(typeof(DialogTextBoxPropertyEditor), typeof(PropertyEditor))]
To display multi-line text I would like to extend the DialogTextPropertyEditor to use the PopupButton with DisplayMode=Merged.
I did this by creating a new class and overriding ValueTemplateKey with a my new DialogTextMultiLineValueTemplateKey.
I then created an event handler for the PopupButton.PopupOpeningEvent.
What I would like to do is display the multi-line text of the selected propertyGrid item in the popupButton PopupContent.
Is there a way to get/set a parameter containing the IPropertyDataAccessor?
Thanks in advance,
Mary
[Modified at 01/07/2011 11:13 AM]
[Editor(typeof(DialogTextBoxPropertyEditor), typeof(PropertyEditor))]
To display multi-line text I would like to extend the DialogTextPropertyEditor to use the PopupButton with DisplayMode=Merged.
I did this by creating a new class and overriding ValueTemplateKey with a my new DialogTextMultiLineValueTemplateKey.
I then created an event handler for the PopupButton.PopupOpeningEvent.
What I would like to do is display the multi-line text of the selected propertyGrid item in the popupButton PopupContent.
Is there a way to get/set a parameter containing the IPropertyDataAccessor?
Thanks in advance,
Mary
[Modified at 01/07/2011 11:13 AM]