Source
www.codeproject.com (The Code Project), posted 2010-06-04
Added By
BillHenn on 2010-06-05
Vitals
- 8555 total views
Summary
A custom control that can be used to zoom and pan its content.
Excerpt
"This article examines the use and implementation of a reusable WPF custom control that is used to zoom and pan its content. The article and the sample code show how to use the control from XAML and from C# code. The main class, ZoomAndPanControl, is derived from the WPF ContentControl class. This means that the primary purpose of the control is to display content. In XAML content controls are wrapped around other UI elements. For example the content might be an image, a map or a chart. In this article I use a Canvas as the content. This Canvas contains some colored rectangles that can be dragged about by the user."
Full Link
http://www.codeproject.com/kb/wpf/zoomandpancontrol.aspx
About The Code Project
The Code Project is a community of software development and design developers joined together with certain common goals: to learn, to teach and to have fun programming. Developers from all over the world come together to share source code, tutorials and knowledge for free to help their fellow programmers. It is extremely popular and is one of the best places on the web to look for open source implementations of .NET control, components, and techniques. http://www.codeproject.com/
The WPFpedia resource guide has 238 total links to this site.
Comments
There aren't any comments yet for this resource. Be the first to add one!
Add a Comment
Please log in to post comments.