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 shape paths?

Thread ID:





143218 Mar 10,2019 04:26 AM UTC Mar 11,2019 06:10 AM UTC WPF 1
Tags: SfDiagram
Karl Beal
Asked On March 10, 2019 04:26 AM UTC

I'm trying to figure out how how to add my own custom path information to the diagram control. I attempted to add something to the Getting Started\Stencil project but the shape is null. How can I accomplish something like this?-

                        <local:NodeVm UnitWidth="60" UnitHeight="60" Key="Basic Shapes"  >
                                <Path Data="F0 M10,100 L100,100 100,50Z" 
                                      StrokeThickness="1" Stroke="Red"/>
 <local:NodeVm UnitWidth="60" UnitHeight="60"  Shape="{StaticResource Rectangle}" Key="Basic Shapes">

Ramya Thirugnanam [Syncfusion]
Replied On March 11, 2019 06:10 AM UTC

Hi Karl, 
Thanks for contacting Syncfusion support. 
Please set the data to the shape property of the node instead of Path. We have created a simple sample to set custom shape for node along with drag and drop.  Please find the sample from the following link. 
Sample link:
Ramya T 


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