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

Fit to page

Thread ID:





90969 Oct 27,2009 01:32 PM UTC Jan 28,2011 05:55 AM UTC WPF 4
Tags: Diagram
Svein Erik Hopen
Asked On October 27, 2009 01:32 PM UTC

Is there any mechanism that allow me to fit the contents (nodes/connectors etc) to the size of the page?

Nikhil A [Syncfusion]
Replied On October 28, 2009 09:25 AM UTC

Hi Svein,

We suppose you are pointing to some mechanism in which the page fits to the size of the nodes and the connectors. We would like you to know that the DiagramPage , which hosts the objects , always resizes itself to the extent of its objects. Therefore at any point in time, the page size will be just big enough so that all its contents fit properly. By default the page is transparent. However the page can be applied a background using the following syntax:

(diagramView.Page as DiagramPage).Background=Brushes.Gray;

where diagramView refers to the DiagramView instance.

Please let us know if there are any concerns.

Syncfusion WPF Team

Replied On January 21, 2011 01:20 AM UTC

hi, i also scratching my head on how to implement fit-to-screen

I want to achieve that when the user click to a button, the diagram can resize all the components(nodes/connections etc) so that all the components can be display on the viewable screen size/diagramview.

Replied On January 24, 2011 04:44 PM UTC

Hi expert, is there any fit-to-screen API in WPF Essential Diagram?

Sundar M [Syncfusion]
Replied On January 28, 2011 05:55 AM UTC

Hi ehor,

Currently API for fit to screen is not available, but the required behavior can be achieved. In this sample, we have implemented FitToScreen using DiagramView’s Zooming functionality. Please click on Button labeled ‘FitToScreen’ from the following sample.

Sample Link:

Please let us know if you have any queries.

Sundar M.



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