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 Property Editor

Thread ID:

Created:

Updated:

Platform:

Replies:

76976 Oct 2,2008 08:12 PM Nov 4,2008 04:50 PM Windows Forms 2
loading
Tags: Diagram
Ron Alan Sawyer
Asked On October 2, 2008 08:12 PM

I have created some custom symbol shapes using the CustomSymbol example as a template. It does nearly everything I need.

However, I need to do one more thing: I need to be able to pop up a custom editor when one of my custom properties has been selected.

For instance, one of my properties is a file name. When the user selects the property "File Name" in the propertyEditor, I want to show a button that would allow him to pop up the file open dialog.

How do I do this?


Administrator [Syncfusion]
Replied On November 4, 2008 11:29 AM

Hi RAS,

Thanks for your interest in Syncfusion products.

you can create the custom editor for syncfusion Custome shapes. If you need to create the UITypeEditor for

properties and add the proeprties in custom properties list that list out the properties.

[EditorAttribute(typeof(LightShapeEditor),typeof(System.Drawing.Design.UITypeEditor))]
public string CustomFileName
{
get
{
return name;
}
set
{
name = value;
}
}

//Added it to the properties list.

props[2] = TypeDescriptor.CreateProperty(typeof(MySymbol), "CustomFileName", typeof(string), attrs);

Please refer the below attached sample.

CustomProperties.zip

Please let me know if this helps.

Thanks,
Ramesh M.



Ron Alan Sawyer
Replied On November 4, 2008 04:50 PM

Thank you.


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.

;