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.

Custom properties in propertyEditor

Thread ID:

Created:

Updated:

Platform:

Replies:

17630 Aug 12,2004 07:23 PM Aug 13,2004 07:40 AM Windows Forms 1
loading
Tags: Diagram
Richard
Asked On August 12, 2004 07:23 PM

Hi, Is there a way to add extra properties to the propertyEditor window, without editing the Syncfusion source. Quite simply, I want to add a backgroundImage property to display in the propertyEditor when the diagramComponent is clicked. I know this is already defined under textures, but I want to make this easier for the client to find. I believe this can be done by editing the diagramComponent.Model code, but is there an easier way of doing this that would not require a rebuild of the Syncfusion dlls. Richard

Administrator [Syncfusion]
Replied On August 13, 2004 07:40 AM

Hi Richard, Here is a modified version of the DiagramBuilder sample demonstrating what you are looking for. The sample uses a derived Diagram (MyDiagram) whose CreateModel method is overridden to use a derived Model (MyModel). MyModel’s SetDefaultPropertyValues is overridden to add the new BackgroundImage property using the SetPropertyValue method. When you build and run the sample you can now see the new property (BackgroundImage) in the Property Editor. Also take a look at the CustomSymbol sample that demonstrates how you can add or selectively display properties for a Symbol. As demonstrated, you will have to create a TypeConverter and subclass the Symbol class to control the properties are exposed in the property grid. Regards Arun

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.

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.

;