We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Retrieving current zoom level?

Thread ID:





125510 Aug 19,2016 04:49 PM UTC Aug 22,2016 11:06 AM UTC WPF 1
Tags: SfDiagram
Andrew Westerman
Asked On August 19, 2016 04:49 PM UTC

For an application I am writing we are using sfDiagram and need to have certain data shown/hidden based on the current zoom level. For example when I zoom in the label for an object on the diagram would appear and disappear when zoomed out. 

Is there a way to retrieve the current zoom level so I can bind an whether or not labels are shown to the current zoom level. 

Any help would be greatly appreciated.

Ranjitha Amirthalingam [Syncfusion]
Replied On August 22, 2016 11:06 AM UTC

Hi Andrew, 
Thanks for contacting Syncfusion Support. 
Requirement: Need to get the CurrentZoom value of the Diagram. 
We have provided sample to represent your requirement. Please refer to the sample from the following link. 
Sample Link: CurrentZoom
Sample Details: 
In this sample, we have registered ViewPortChanged event to get the CurrentZoom value of the Diagram. 
Ranjitha A. 


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon