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

Control / Container Node for WPF / Silverlight

Thread ID:





96087 Aug 19,2010 06:50 PM UTC Aug 23,2010 12:24 PM UTC ASP.NET Web Forms (Classic) 3
Tags: DiagramWebControl
Andre van Staden
Asked On August 19, 2010 06:50 PM UTC


Is there the equivalent of the ControlNode class available for WPF / Silverlight. If not, is it being planned for a later release or should I start rolling my own version ?


Pandi Murugan A [Syncfusion]
Replied On August 21, 2010 06:37 AM UTC

Hi Andre,

Thank you for using Syncfusion Products.

In both WPF and Silverlight, we suggest you to use Syncfusion diagram Node’s Content property to host any control (UIElement) or any content inside a node in the diagram.

Please refer the following code snippet.

private void createNode()
Node n = new Node();
n.Shape = Shapes.Default;
Button b = new Button();
b.Content = "Click ME!";
n.Content = b;
(n.Content as Button).IsHitTestVisible = true;
b.Click += new RoutedEventHandler(b_Click);

void b_Click(object sender, RoutedEventArgs e)
MessageBox.Show("i am fired"); // do something here;

Here, Button is a UIElement; similarly any UIElement can be hosted as a Node’s Content.

We have created a sample for your reference. Please refer the sample below.


Please let me know if you have any concerns.

Pandi Murugan A

Andre van Staden
Replied On August 22, 2010 07:57 AM UTC

Thanks a lot,

I was trying this for days without any success. The answer is that I left out the creation of an instance of type Shape and the GUI elements was thus never visible and would never fire.

Thanks for the help - just goes to show that the simple solution (almost always) is the one that works.


Pandi Murugan A [Syncfusion]
Replied On August 23, 2010 12:24 PM UTC

Hi Andre,

Thank you for your feedback.

Please get back us if you have any other concerns.

Pandi Murugan A


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