|114715||Dec 5,2013 10:40 AM UTC||Dec 11,2013 08:50 AM UTC||WinRT||4|
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"
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
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.
default, Zooming/Panning is enabled for SfDiagram using Constraints Property.
The constraints can be manipulated using bitwise operations.
The following code snippet illustrates how to enable Zooming in SfDiagram and how to use Bitwise operations.
sfdiagram.Constraints = sfdiagram.Constraints | GraphConstraints.Zoomable;
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.
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,
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.