Hi Elia,
Thanks for your continued interest in Syncfusion product.
If your intention is to disable the editstyle properties of the deserialized node then you have to set the Tag value to the dynamically created nodes. Please refer to the following code snippet
this.diagram1.LoadBinary("..\\..\\flowchart.edd");
Rectangle rect1 = new Rectangle(80, 800, 69, 45);
rect1.Tag = 1;
this.diagram1.Model.AppendChild(rect1);
Rectangle rect2 = new Rectangle(80, 1000, 69, 45);
rect2.Tag = 1;
this.diagram1.Model.AppendChild(rect2);
foreach (INode node in this.diagram1.Model.Nodes)
{
Node m_node = node as Node;
if (m_node.Tag == null)
{
m_node.EditStyle.AllowSelect = false;
m_node.EditStyle.AllowMoveX = false;
m_node.EditStyle.AllowMoveY = false;
m_node.EditStyle.AllowResize = false;
m_node.EditStyle.AllowRotate = false;
}
}
I have attached the sample that demonstrates this completely. In this sample you could not select the deserialized nodes.
http://websamples.syncfusion.com/samples/Diagram.Windows/F68142/main.htmPlease refer to the sample and let me know if you have any questions.
Regards,
Nagaraj