Home > Posts > Zoom and Pan control for WPF and Silverlight (via WPF compatibility layer)

Zoom and Pan control for WPF and Silverlight (via WPF compatibility layer)

I’ve managed to combine

http://www.codeproject.com/Articles/85603/A-WPF-custom-control-for-zooming-and-panning

and a cut-down version of it for Silverlight that was out there:

http://www.codeproject.com/Articles/167453/A-Silverlight-custom-control-for-zooming-and-panni

I did it in a way that the Silverlight version is source-code compatible with the WPF version (via a WPF compatibility layer that even implements value coercion), so that both the WPF and the Silverlight projects share the same source code files.

The resulting libraries for WPF and Silverlight work with the existing samples (from the two articles mentioned above) without any changes to them.

Can checkout the latest version (plan to add the samples there too for convenience) under the "Client" subfolder of ClipFlair source-code base at http://clipflair.codeplex.com

Advertisements
Categories: Posts Tags: , , , , ,
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: