BoldSignA modern eSignature application with affordable pricing. Sign up today for unlimited document usage!
Hi,
How is it possible to enable zooming in a Diagram control? I have it working within a page as follows:
<syncfusion:SfDiagram HorizontalAlignment="Left" VerticalAlignment="Top" Tool="SingleSelect"
ScrollViewer.ZoomMode="Enabled"
ManipulationMode="None"
x:Name="radialDiagram"
AllowDrop="True"
Height="500"/>
And when I drag nodes in the diagram beyond the visible screen I get automatic scrollbars (which is fine), but I also want to enable some kind of zoom/pinch to zoom behavior and setting the ScrollViewer.ZoomMode propery isn't working.. is there anything else I need to do?
Many thanks in advance
**EDIT**
Hi Marc,
Regarding to “Enable Zooming in a Sync Fusion Diagram”,
Zooming/Panning operation over SfDiagram is working fine with your provided
code snippet. We have created a simple sample to represent this. Please refer
to the sample from the attachment.
By
default, Zooming/Panning is enabled for SfDiagram using Constraints Property.
The constraints can be manipulated using bitwise operations.
Code Snippet:
The following code snippet illustrates how to enable Zooming in SfDiagram and how to use Bitwise operations.
[C#] sfdiagram.Constraints = sfdiagram.Constraints | GraphConstraints.Zoomable; |
Note:
Tool property of SfDiagram is used to operate any one of the multiple
functionalities at any particular time(Pan/MultipleSelection/DrawingTool).
For more details about SfDiagram Tools , GraphConstraints and bitwise operations, please refer to the following online help documentation link.
Tools Link: http://help.syncfusion.com/UG/winrt/Documents/tool.htm
Graph Constraints Link: http://help.syncfusion.com/UG/winrt/Documents/graphconstraints.htm
Bitwise Operation Link: http://help.syncfusion.com/UG/winrt/Documents/bitwiseoperations.htm
Please let us know if you have any concerns,
Regards,
Ramya