Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ways to zoom in WPF

Tags:

wpf

zooming

I Need to implement zoom same as in office 2010.

The content can be any UI element including a third party grid(probably telerik)

I know 4 ways to implement zoom.

What the best way(performance) to implement zoom in this case?

like image 501
Chen Kinnrot Avatar asked Oct 31 '10 08:10

Chen Kinnrot


1 Answers

Usually the simplest, fastest way to zoom is to set the RenderTransform on the element to be zoomed as a ScaleTransform, and set the ScaleX and ScaleY properties of the transform.

like image 178
robertos Avatar answered Sep 21 '22 23:09

robertos