Hi,
I am creating a Node though code and assigning a Textbox to Node Content property. And adding the node to diagram model then Node is displaying on the UI.
My issue is I am unable to edit the Textbox Text property on the UI. Please help me.
My requirement is I want to show a textbox in node and create that node dynamically and add to diagram model. I want to enter some value in textbox.
I am sending my code how I am approaching this functionality.
Node nodeObj = new Node();nodeObj.IsEnabled =
true;nodeObj.IsHitTestVisible =
true;nodeObj.ContentHitTestVisible =
true;nodeObj.Content =
new TextBox() { Width = 100.0, Text = "Hello Test" }; this.diagrammodel.Nodes.Add(nodeObj);
Regards,
Ramana
Hi Ramana,
We have analyzed your query “Unable to Edit Diagram Node Content”, we have created a simple sample based on your requirement. In the sample, to get the reference of node’s Label and collapse the visibility of the Label to focus the TextBox. Please refer the sample for more information, which can be downloaded from the following link.
Please let us know if you have any concerns.
Regards,
Sudhakar.C