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.

how to apply border to style on custompath

Thread ID:

Created:

Updated:

Platform:

Replies:

93876 Apr 9,2010 04:14 AM Apr 10,2010 06:45 AM WPF 1
loading
Tags: Diagram
Administrator [Syncfusion]
Asked On April 9, 2010 04:14 AM

Hi, I am using a custom path to color my nodes depending on what I am doing, I have also removed the resize, rotate and select handles. Instead this is being handled in code. I do however want to show the user when they have selected a node (active node), and I want to put a soft shadow behind my node, or at minimum put a border around my custom shape.

Because I am dealing with multiple colors etc on my custom path, I have a number of different styles, (makes sense when you see screen shot),

can anyone help as to how I would put such a border on my node.

I already have the code to activate and deactivate the node (currently I am setting the label style to bold), so I am just wondering how to apply a border to the custom path

at the moment the setter for the color change is . . .






etc....etc....





TIA


Paul.

Deepa V [Syncfusion]
Replied On April 10, 2010 06:45 AM

Hi Paul,

Thank you for your interest in Syncfusion products.

We are able to understand the requirement. In order to apply border to the custom path you can use the stroke property in the CustomPathStyle. Following is the modified CustomPathStyle for setting the stroke property.







Following trigger can be used to include shadow when the node is selected:









I have created a sample based on your requirement .Kindly find the sample in the following location.

http://www.syncfusion.com/uploads/redirect.aspx?&team=support&file=NodeFeatures2131004435.zip

Please let us know if you have further queries.

Thank you,
Deepa V

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.

;