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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Custom properties in propertyEditor

Thread ID:





17630 Aug 12,2004 11:23 PM UTC Aug 13,2004 11:40 AM UTC WinForms 1
Tags: Diagram
Asked On August 12, 2004 11:23 PM UTC

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 11:40 AM UTC

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


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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

Live Chat Icon For mobile
Live Chat Icon