Articles in this section
Category / Section

How to enable the AspectRatio of node in WPF Diagram (SfDiagram)?

1 min read

AspectRatio constraints of Node is used to enable or disable the proportional resizing of Nodes in WPF Diagram (SfDiagram). When the width of a node is resized, its height also automatically resized to maintain its Aspect Ratio. Please refer to the below code example.

C#

//Here, node is the instance of Node.
node.Constraints = node.Constraints | NodeConstraints.AspectRatio;

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please  to leave a comment
Access denied
Access denied