We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Responding to Dynamic Symbol "default" values

Thread ID:

Created:

Updated:

Platform:

Replies:

42427 Mar 28,2006 07:24 PM UTC Mar 29,2006 10:27 AM UTC Windows Forms 1
loading
Tags: Diagram
Eric Robishaw
Asked On March 28, 2006 07:24 PM UTC

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?

Administrator [Syncfusion]
Replied On 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.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;