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;
dc.Model.Nodes.Add(n);
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.
Sample-806541268.zipPlease let me know if you have any concerns.
Regards,
Pandi Murugan A