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 bind Stencil Symbol Source

Thread ID:





125666 Sep 1,2016 07:57 AM UTC Sep 5,2016 02:48 PM UTC WPF 4
Tags: SfDiagram
Asked On September 1, 2016 07:57 AM UTC


In the following articles


There is an example of creating symbols

But in one of the samples you can find the following code

                        <local:NodeVm UnitWidth="60" UnitHeight="60" 
                                      Shape="{StaticResource Rectangle}" Key="Basic Shapes">

NodeVm doesnot implmement ISymbol as mentioned in the article

How can i bind SymbolSource  to a collection of NodeVM from my view model?

Thanks in advance


Keerthivasan Ramamoorthy [Syncfusion]
Replied On September 2, 2016 01:07 PM UTC

Hi Tomer, 
We have deprecated the ISymbol dependency with SymbolSource and Stencil , in order to provide support to add Node and Connector into Stencil. We have Provided the sample and online documentation link. Please refer to sample and documentation link as below.  
Sample Link:125666_Stencil
Keerthivasan R 

Replied On September 2, 2016 01:32 PM UTC


But i dont see binding here

I was talking about something like

<stencil:Stencil x:Name="stencil"
                             SymbolSource="{Binding Shapes}"

Where the Shapes is a property in my view model of type ObservableCollection<NodeViewModel>

I have tried it and it throw exception

Thanks in advance


Keerthivasan Ramamoorthy [Syncfusion]
Replied On September 5, 2016 12:29 PM UTC

Hi Tomer, 
We have analyzed and modified a sample. Please refer to a sample from the following link.  
Sample details: 
In this sample, the SymbolCollection(ObservableCollection<NodeViewModel>) is bind to SymbolSource in Xaml. 
If the provided information does not address the reported, please revert with your sample that helps us to give the quick solution to you. 
Keerthivasan R.   

Replied On September 5, 2016 02:48 PM UTC

Can you try to bind it to a view model property?

On my side i get null exception

Thanks in advance



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

or the page will be automatically redirected to 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