Responding to Dynamic Symbol "default" values

I''m building a dynamic symbol programattically (like in the DynamicSymbol example). For simplicity sake, my symbol is made up of 1 rectangle, called outerRect. I would like to responde to properties that are applied to the symbol (such as Line Style or Fill style, etc...) and apply these properties to the rectangle that makes up my shape. So, if someone has my symbol selected, in the properties dialog, they change the fill color to Red, for example, I want to set the fillcolor of the rectangle to red. I know I can catch this in the OnPropertyChanged event, but that''s not effective, because I don''t want to trap every possible PropertyName value and assign it accordingly. I did try catching OnPropertyChanged, and then just calling outerRect.SetPropertyValue() with the newly set property value, but that messes it all up. I also tried providing, in my symbol class, a new FillStyle {get} property, which returns the outerRect.FillStyle. That too proved disasterous. I thought I could at-least catch FillStyle changes like this. No go. Any ideas?

1 Reply

AD Administrator Syncfusion Team March 29, 2006 10:27 AM UTC

Hello ERobishaw, If your intension is to get a notification while changing the property of a symbol in the property editor, you can use PropertyEditor.PropertyGrid.SelectedGridItemChanged(..) event method. The SelectedGridItemChanged event occurs when the user changes the GridItem that is selected in a PropertyGrid. Please let me know whether this helps you. Thank you for your interest in Syncfusion products. Best Regards, Meera.

Loader.
Up arrow icon