Restrict zoom for a node


#1

hi,

I wanted to know if there is any property for a node by which I can make that node not to zoom in/out and be same height and width I provide ?

Consider the diagram has 5 nodes with different categories and one among them should not be zoomed in/out where as others can…


#2

Zooming is implemented by changing the value of DiagramPanel.Scale, so the scale applies to everything that is drawn.

But you can change the ScaleTransform on that individual node so that its size changes inversely with the DiagramPanel.Scale. Execute that code in a DiagramPanel.ViewportBoundsChanged handler that you establish in a Diagram.TemplateApplied handler.