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

Custom shape paths?

Thread ID:

Created:

Updated:

Platform:

Replies:

143218 Mar 10,2019 04:26 AM UTC Mar 11,2019 06:10 AM UTC WPF 1
loading
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:SymbolCollection>
                        <!--BasicShapes-->
                        <local:NodeVm UnitWidth="60" UnitHeight="60" Key="Basic Shapes"  >
                            <local:NodeVm.Shape>
                                
                                <Path Data="F0 M10,100 L100,100 100,50Z" 
                                      StrokeThickness="1" Stroke="Red"/>
                            </local:NodeVm.Shape>
                        </local:NodeVm>
 <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:
DiagramWithStencil
 
 
Regards, 
Ramya T 


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.

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

;