Hi Raymond,
Thank you for using the Syncfusion product.
Based on your update, we assume that you have to render the node with a larger size depending on the content page. By default, the Node will take 50 in size whereas the layout initialization is not set the size of the node. So, it seems smaller in size and will not occupy based on the content page. To overcome this, you can set the node size using the BeginNodeRender event of the SfDiagram, and please find the UG documentation for the same from below,
Kindly use the below code example to get this issue resolved.
|
private void Diagram_BeginNodeRender(object sender, BeginNodeRenderEventArgs args)
{
Node node = args.Item;
node.Width = 400;
node.Height = 400;
node.Annotations.Add(new Annotation() { Content = (node.Content as Employee).Name , FontSize=40});
} |
Could you please try the above-suggested solution and let us know whether it meets your requirement or not?
If our understanding is different from your requirement, could you please explain briefly about your requirement? It will be useful for us to investigate further this and assist you with a better solution at the earliest.
Note: The ‘MinimumZoomFactor’ property works only when you zoom the Diagram control using pinch-zoom to that value.
With Regards,
Gayathri R