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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

how to apply border to style on custompath

Thread ID:





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

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 . . .




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

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.


Please let us know if you have further queries.

Thank you,
Deepa V


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