<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Jaime Rodriguez  : expression</title><link>http://blogs.msdn.com/jaimer/archive/tags/expression/default.aspx</link><description>Tags: expression</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Expression Studio TuTorialS Starter Kit</title><link>http://blogs.msdn.com/jaimer/archive/2009/08/11/expression-studio-tutorials-starter-kit.aspx</link><pubDate>Wed, 12 Aug 2009 09:26:06 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9865624</guid><dc:creator>jaimer</dc:creator><slash:comments>5</slash:comments><comments>http://blogs.msdn.com/jaimer/comments/9865624.aspx</comments><wfw:commentRss>http://blogs.msdn.com/jaimer/commentrss.aspx?PostID=9865624</wfw:commentRss><description>&lt;p&gt;Via &lt;a href="http://ux.artu.tv/"&gt;Arturo Toledo&lt;/a&gt; (internal email).&amp;#160; The Expression team released four great Expression starter kits today.. &lt;/p&gt;  &lt;p&gt;&lt;a href="http://download.microsoft.com/download/A/4/9/A49AB02F-F035-402C-9B26-84860EEAF7DC/Prototyping_with_Sketchflow_StarterKit.zip"&gt;Introduction to Prototyping with Sketchflow in Expression Blend 3&lt;/a&gt;    &lt;br /&gt;Discover Sketchflow, a new feature set in Expression Blend 3 that helps you define the concept for user experiences in early stages of the design process. From sketches to wireframes to protoypes of simple or high definition, Sketchflow provides you the right tools to communicate your ideas and gather feedback from others.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://download.microsoft.com/download/1/1/C/11C8F2E2-711B-4581-A688-6B66DA4D1124/VentureIntoGaming_ExpressionBlend3_StarterKit.zip"&gt;Venture into Gaming with Behaviors in Expression Blend 3&lt;/a&gt;&amp;#160; &lt;br /&gt;Learn more about how to build a traditional &amp;quot;bricks&amp;quot; game using Expression Blend 3 Behaviors. Simply drag and drop Behaviors over objects in your artboard to easily add powerful and sophisticated functions like animation, physics, interactivity, data connection, effects and more. All without coding. The ever growing Behaviors Gallery at expression.microsoft.com is always available for you to download new behaviors.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://download.microsoft.com/download/F/3/4/F343C86B-FEE4-4448-8715-CA768BB305FE/ExpressionWeb3_SuperPreview_StarterKit.zip"&gt;Discovering SuperPreview in Expression Web 3&lt;/a&gt;&lt;strong&gt;      &lt;br /&gt;&lt;/strong&gt;Learn more about SuperPreview, a new visual diagnostics tool in Expression Web 3. In this Starter Kit you will be provided with detailed guidance on how to leverage SuperPreview to diagnose issues across multiple browser, all with full rendering fidelity and detailed control.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://download.microsoft.com/download/B/9/8/B9874A4F-58F8-4D01-8E2F-E1DAC62ED4A3/SilverlightSupport_Web3_StarterKit.zip"&gt;Support for Silverlight in Expression Web 3&lt;/a&gt;    &lt;br /&gt;Learn how to leverage the new and easy to use Silverlight support features in Expression Web 3. Then take your websites and publish them to an FTP location without having to leave Expression Web. &lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;------- &lt;/p&gt;  &lt;p&gt;I just got done watching the Sketchflow tutorial videos; they were excellent!!&amp;#160; Moving to behaviors next :) &lt;/p&gt;  &lt;p&gt;Enjoy!! &lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9865624" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/jaimer/archive/tags/Windows+Presentation+Foundation/default.aspx">Windows Presentation Foundation</category><category domain="http://blogs.msdn.com/jaimer/archive/tags/expression/default.aspx">expression</category><category domain="http://blogs.msdn.com/jaimer/archive/tags/silverlight/default.aspx">silverlight</category></item><item><title>Using Uris in Expression Blend</title><link>http://blogs.msdn.com/jaimer/archive/2009/02/15/using-uris-in-expression-blend.aspx</link><pubDate>Mon, 16 Feb 2009 10:07:10 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9425438</guid><dc:creator>jaimer</dc:creator><slash:comments>2</slash:comments><comments>http://blogs.msdn.com/jaimer/comments/9425438.aspx</comments><wfw:commentRss>http://blogs.msdn.com/jaimer/commentrss.aspx?PostID=9425438</wfw:commentRss><description>&lt;p&gt;Last week, &lt;a href="http://blogs.msdn.com/expression" target="_blank"&gt;Unni&lt;/a&gt; and &lt;a href="http://www.blois.us/blog/" target="_blank"&gt;Pete&lt;/a&gt; explained to me how Blend resolves Uris. In this post, I will attempt to explain the details and the possible solution.&amp;#160;&amp;#160; &lt;br /&gt;    &lt;br /&gt;&lt;strong&gt;Details: &lt;/strong&gt;    &lt;br /&gt;We already knew that at design-time, Blend loads your window, usercontrols, or what every you are designing, in its main process (and main AppDomain).&amp;#160; &lt;br /&gt;In the default scenario, this would imply that all Uris will not work (since they resolve relative to Blend’s application) but there is some special handling in Blend to handle Uris &lt;u&gt;in XAML&lt;/u&gt;. Blend reads the XAML and alters the Uri references so that they resolve relative to the file:// path of the designed application, instead of relative to Blend’s application.&amp;#160; &lt;br /&gt;    &lt;br /&gt;For the most part, Blend does a good job and from XAML your Uris will work fine, but you will notice issues when you are resolving Uris that are not in the parsed XAML:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;If you have design-time data, and the Uri’s are coming from data bindings, then blend can not intercept these and fix them. &lt;/li&gt;    &lt;li&gt;If your Uris are coming from code that is executing while in design-time then Blend has no way of fixing them and your code is likely going to throw an exception or not resolve. &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&lt;strong&gt;Solution: &lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;As you already know, I like absolute Uris and the pack syntax; so I am going to stick with it, but now I have to emphasize that you use the full syntax (including the component part) on the Uri.&amp;#160; If you do this,&amp;#160; Blend seems to resolve very well on most scenarios, including code and bindings!! &lt;/p&gt;  &lt;p&gt;I will say it again, full Uri including component part. For example: &lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;pack://application:,,,/Images/happyface.png&amp;#160; is wrong.&amp;#160; This will work from XAML, but not from code.&amp;#160; It needs to be &lt;/li&gt;    &lt;li&gt;pack://&lt;strong&gt;application:,,,/WpfApplication6;component&lt;/strong&gt;/Images/happyface.png&amp;#160;&amp;#160;&amp;#160; If you do this, Blend resolves well all the time!       &lt;br /&gt;&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;Note: I labeled it possible solution because I am aware that not every one likes the full pack syntax. It can be cumbersome. I also have to explain, that not every one needs this solution, you only need it when the Uris come from code and are needed at design-time (in Blend). Mixing and matching Uris might be a good compromise.&amp;#160;&amp;#160; &lt;br /&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Want to see more? &lt;/strong&gt;    &lt;br /&gt;This &lt;a href="http://www.cookingwithxaml.com/recipes/blendUris/WpfApplication6.zip" target="_blank"&gt;sample&lt;/a&gt; shows all kinds of different paths to resolve an image.     &lt;br /&gt;As you can see, at design-time, the binding ones and the ones that come from code, do work when using a full path.&amp;#160; &lt;/p&gt;  &lt;table border="1" align="center"&gt;&lt;tbody&gt;     &lt;tr&gt;       &lt;td align="center"&gt;&lt;em&gt;Blend, design-time&lt;/em&gt; &lt;/td&gt;        &lt;td align="center"&gt;&lt;em&gt;Run-time&lt;/em&gt; &lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td&gt;&lt;a href="http://blogs.msdn.com/blogfiles/jaimer/WindowsLiveWriter/UsingpackURIsinBlend_11CF7/image_4.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/jaimer/WindowsLiveWriter/UsingpackURIsinBlend_11CF7/image_thumb_1.png" width="387" height="299" /&gt;&lt;/a&gt; &lt;/td&gt;        &lt;td&gt;&amp;#160; &lt;a href="http://blogs.msdn.com/blogfiles/jaimer/WindowsLiveWriter/UsingpackURIsinBlend_11CF7/image_6.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/jaimer/WindowsLiveWriter/UsingpackURIsinBlend_11CF7/image_thumb_2.png" width="350" height="295" /&gt;&lt;/a&gt; &lt;/td&gt;     &lt;/tr&gt;   &lt;/tbody&gt;&lt;/table&gt;  &lt;p&gt;Happy blending!!    &lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9425438" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/jaimer/archive/tags/Windows+Presentation+Foundation/default.aspx">Windows Presentation Foundation</category><category domain="http://blogs.msdn.com/jaimer/archive/tags/expression/default.aspx">expression</category><category domain="http://blogs.msdn.com/jaimer/archive/tags/blend/default.aspx">blend</category></item><item><title>A deepzoom primer ( explained and coded)..</title><link>http://blogs.msdn.com/jaimer/archive/2008/03/31/a-deepzoom-primer-explained-and-coded.aspx</link><pubDate>Tue, 01 Apr 2008 08:56:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8347451</guid><dc:creator>jaimer</dc:creator><slash:comments>18</slash:comments><comments>http://blogs.msdn.com/jaimer/comments/8347451.aspx</comments><wfw:commentRss>http://blogs.msdn.com/jaimer/commentrss.aspx?PostID=8347451</wfw:commentRss><description>&lt;P&gt;I had to learn DeepZoom recently and along the way I put together some handy notes .. below are the notes organized in a near step-by-step explanation format.&amp;nbsp; This is a very long post, but I hope it has useful insights for any one wanting to do deepzoom so I recommend you read it all.&amp;nbsp; If you must skip, then the outline will help you.&amp;nbsp; imo, part 3 and 5 are the good stuff.&amp;nbsp; &lt;BR&gt;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;Part 1 – The history and brief explanation on how DeepZoom works. &lt;/P&gt;
&lt;P&gt;Part 2 – Constructing a DeepZoom image using Image Composer &lt;/P&gt;
&lt;P&gt;Part 3 – Introduction to the DeepZoom object model – goes way beyond the docs I hope &lt;/P&gt;
&lt;P&gt;Part 4 – Coding a deepZoom ‘host’ user control with Pan &amp;amp; Zoom &lt;/P&gt;
&lt;P&gt;Part 4.1 – Adding a few extra features to our User Control &lt;/P&gt;
&lt;P&gt;Part 5 – Lessons learned on the code, documenting the gotchas&amp;nbsp; **must read even if you know Deep Zoom already &lt;/P&gt;
&lt;P&gt;Part 6 – Give me the code, just a zip file w/ the goodies&amp;nbsp; &lt;/P&gt;
&lt;P&gt;Part 7 – Show me the outcome; what did we build? &lt;/P&gt;
&lt;H1&gt;Part 1 – The History &amp;amp; Math behind DeepZoom&lt;/H1&gt;
&lt;P&gt;A lot of people equate DeepZoom to SeaDragon – they assume SeaDragon was the code name and DeepZoom is the marketing name-. This assumption is not quite right (unless you equate your engine to your car model).&amp;nbsp; &lt;A href="http://labs.live.com/Seadragon.aspx" mce_href="http://labs.live.com/Seadragon.aspx"&gt;Seadragon&lt;/A&gt; is an incubation project resulting from the acquisition of Seadragon Software; the Seadragon team is part of the Live organization and are working on several projects (like Photosynth). DeepZoom is an implementation that exposes some of the SeaDragon technology to Silverlight. &lt;/P&gt;
&lt;P&gt;DeepZoom provides the ability to smoothly present and navigate large amounts of visual information (images) regardless of the size of the size of the data, and optimizing the bandwidth available to download it.&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;TABLE class="" cellSpacing=0 cellPadding=2 width="100%" border=0&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class="" vAlign=top&gt;
&lt;P&gt;&lt;STRONG&gt;How does DeepZoom work? &lt;BR&gt;&lt;/STRONG&gt;&lt;BR&gt;DeepZoom accomplishes its goal by partitioning an image (or a composition of images) into tiles.&amp;nbsp; While tiling the image, the composer also creates a pyramid of lower resolution tiles for the original composition.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;The image to the right shows you what a pyramid; the original image is lowest in the pyramid, notice how it is tiled into smaller images, also notice the pyramid creates lower resolution images (also tiled).&amp;nbsp;&amp;nbsp; A few of the docs I read said the tiles are 256x256, but from peeking through the files generated by the composer I am not convinced; I do know from reading through the internal stuff that there is some heavy math involved here, so I trust they tile for right size :). &lt;/P&gt;
&lt;P&gt;All of this tiling is performed at design-time and gets accomplished using the DeepZoom composer. &lt;/P&gt;
&lt;P&gt;At run-time a MultiScaleImage downloads a lower resolution tile of the image first and downloads the other images on demand (as you pan or zoom); DeepZoom make sure the transitions from lower to higher res images are smooth and seamless.&amp;nbsp; &lt;/P&gt;&lt;/TD&gt;
&lt;TD class="" vAlign=top width=380&gt;&lt;A href="http://blogs.msdn.com/blogfiles/jaimer/WindowsLiveWriter/Deepzoomprimerpart12_A83/PYRPSD_3.jpg" mce_href="http://blogs.msdn.com/blogfiles/jaimer/WindowsLiveWriter/Deepzoomprimerpart12_A83/PYRPSD_3.jpg"&gt;&lt;IMG style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" height=304 alt=PYRPSD src="http://blogs.msdn.com/blogfiles/jaimer/WindowsLiveWriter/Deepzoomprimerpart12_A83/PYRPSD_thumb.jpg" width=404 border=0 mce_src="http://blogs.msdn.com/blogfiles/jaimer/WindowsLiveWriter/Deepzoomprimerpart12_A83/PYRPSD_thumb.jpg"&gt;&lt;/A&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;
&lt;P&gt;Given all this, &lt;STRONG&gt;how is Deepzoom different than say a ScaleTransform (for zoom) on a high resolution image? &lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;With a ScaleTransform, usually you would download the whole high res image at once; this delays how quickly the end user gets to see the image when the page or application loads.&amp;nbsp; Some times people apply a trick where you use different resolutions images, since you are not tiled you will likely end up downloading several big images (consuming more network bandwidth) or the download time will continue to be high if the initial downloaded image is not small enough, also the transitions from low to higher res are going to be more noticeable unless your write the transitions yourself. &lt;/P&gt;
&lt;P&gt;DeepZoom and its tiling make it possible to see bits quicker and can optimize for bandwidth.&amp;nbsp; In the worst case scenario where some one looked at every single one of the tiles at the highest resolution, DeepZoom would have an extra overhead of 33% compared to downloading the single highest resolution image at once, but this ‘worst case’ scenario is almost never hit, most of the time DeepZoom can save you from downloading too much.&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;Another feature in DeepZoom is its ability to create ‘collections’ from the composite image.&amp;nbsp; This provides you the ability to compose a scene ( group of images ), optimize them for speed &amp;amp; download, but still maintain the ‘autonomy’ and identity of the image, you can programmatically manipulate (or position) these images from within the DeepZoom collection (more on collections in part 4). &lt;/P&gt;
&lt;P&gt;&lt;BR&gt;&lt;/P&gt;
&lt;H1&gt;Part 2 – Constructing a DeepZoom Image using DeepZoom composer&amp;nbsp; &lt;/H1&gt;
&lt;OL&gt;
&lt;LI&gt;We begin by downloading the "DeepZoom composer" from &lt;A href="http://download.microsoft.com/download/b/3/5/b352676b-9ea1-4ac8-904f-8d14aa60df84/DeepZoomComposer.msi" mce_href="http://download.microsoft.com/download/b/3/5/b352676b-9ea1-4ac8-904f-8d14aa60df84/DeepZoomComposer.msi"&gt;Microsoft Downloads&lt;/A&gt;. &lt;BR&gt;If you want a great reference for the tool, try the &lt;A href="http://blogs.msdn.com/expression/archive/2008/03/05/deep-zoom-composer-user-guide.aspx" mce_href="http://blogs.msdn.com/expression/archive/2008/03/05/deep-zoom-composer-user-guide.aspx"&gt;DeepZoom Composer guide&lt;/A&gt;. In the steps below, I am going to keep it to the minimum steps needed and some of the gotchas when using the tool. &lt;BR&gt;&lt;/LI&gt;
&lt;LI&gt;After installing the DeepZoom Composer, we launch it.&amp;nbsp; &lt;BR&gt;Trivia facts: Composer is a WPF application, like most of the other Expression products. Also, codename was Mermaid (you can see this from the export window). &lt;BR&gt;&lt;/LI&gt;
&lt;LI&gt;Under the File Menu, select "New Project" 
&lt;TABLE class="" cellSpacing=0 cellPadding=2 width=675 border=0&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class="" vAlign=top width=396&gt;
&lt;OL&gt;
&lt;OL&gt;
&lt;LI&gt;Select a location to store the project. &lt;BR&gt;I recommend some thing with a short path like c:\users\jaimer\. The composer has some usability issues that make working with long paths a little hard; and the composer will append to your path later when you export. &lt;/LI&gt;
&lt;LI&gt;I called it "EasterEggHunt" as that is what my project will be. &lt;/LI&gt;&lt;/OL&gt;&lt;/OL&gt;&lt;/TD&gt;
&lt;TD class="" vAlign=top width=277&gt;&lt;A href="http://blogs.msdn.com/blogfiles/jaimer/WindowsLiveWriter/Deepzoomprimerpart12_A83/image_2.png" mce_href="http://blogs.msdn.com/blogfiles/jaimer/WindowsLiveWriter/Deepzoomprimerpart12_A83/image_2.png"&gt;&lt;IMG style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" height=147 alt=image src="http://blogs.msdn.com/blogfiles/jaimer/WindowsLiveWriter/Deepzoomprimerpart12_A83/image_thumb.png" width=244 border=0 mce_src="http://blogs.msdn.com/blogfiles/jaimer/WindowsLiveWriter/Deepzoomprimerpart12_A83/image_thumb.png"&gt;&lt;/A&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/LI&gt;
&lt;LI&gt;Now click "Add Image" to import a few images. &lt;BR&gt;You can import multiple images at once.&amp;nbsp; In my case, I am importing 3 images: bummysmall.jpg, eggs.jpg, and world2.jpg). These are in the inputimages directory if your are following along with the source. &lt;BR&gt;&lt;A href="http://blogs.msdn.com/blogfiles/jaimer/WindowsLiveWriter/Deepzoomprimerpart12_A83/image_4.png" mce_href="http://blogs.msdn.com/blogfiles/jaimer/WindowsLiveWriter/Deepzoomprimerpart12_A83/image_4.png"&gt;&lt;IMG style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" height=445 alt=image src="http://blogs.msdn.com/blogfiles/jaimer/WindowsLiveWriter/Deepzoomprimerpart12_A83/image_thumb_1.png" width=624 border=0 mce_src="http://blogs.msdn.com/blogfiles/jaimer/WindowsLiveWriter/Deepzoomprimerpart12_A83/image_thumb_1.png"&gt;&lt;/A&gt;&amp;nbsp; &lt;BR&gt;This added all the images we are going to use in the composer.&amp;nbsp; All images must be added at design-time. &lt;BR&gt;&lt;/LI&gt;
&lt;LI&gt;Click "Compose"&amp;nbsp; on the Center toolbar to compose the DeepZoom image. &lt;BR&gt;&lt;/LI&gt;
&lt;LI&gt;Double click the world image to add it to the 'stage' or design surface. &lt;/LI&gt;
&lt;LI&gt;Click Fit To Screen to maximize our space. &lt;/LI&gt;
&lt;LI&gt;Click on the eggs image&amp;nbsp; to add it to the stage. &lt;/LI&gt;
&lt;LI&gt;Zoom many times into the image at a place where you want to drop some easter eggs. 
&lt;OL&gt;
&lt;LI&gt;Hint:&amp;nbsp; the Usual short cuts of Ctrl+ and Ctrl-&amp;nbsp; do work for zooming. Unfortunately Pan(h) and Select(v) don't work. &lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;
&lt;LI&gt;Shrink the easter eggs into a small size -- don't worry, with DeepZoom we will be able to Zoom a lot at run-time to find them and see them. &lt;/LI&gt;
&lt;LI&gt;Drop the easter eggs where you want to. He is an example of mine, I dropped them in Mexico. Notice I am quite zoomed into the map and the eggs are small. &lt;BR&gt;&lt;BR&gt;&lt;A href="http://blogs.msdn.com/blogfiles/jaimer/WindowsLiveWriter/Deepzoomprimerpart12_A83/image_6.png" mce_href="http://blogs.msdn.com/blogfiles/jaimer/WindowsLiveWriter/Deepzoomprimerpart12_A83/image_6.png"&gt;&lt;IMG style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" height=388 alt=image src="http://blogs.msdn.com/blogfiles/jaimer/WindowsLiveWriter/Deepzoomprimerpart12_A83/image_thumb_2.png" width=583 border=0 mce_src="http://blogs.msdn.com/blogfiles/jaimer/WindowsLiveWriter/Deepzoomprimerpart12_A83/image_thumb_2.png"&gt;&lt;/A&gt;&amp;nbsp; &lt;BR&gt;&lt;BR&gt;&lt;/LI&gt;
&lt;LI&gt;Repeat the steps in 11 for the bunny picture.&amp;nbsp; In my case,&amp;nbsp; I did it in Seattle area. &lt;BR&gt;Note: unfortunately I could not figure how to drag same image twice into stage area.&amp;nbsp; The work around I used is to make a copy of the image with different name, and add it to the image gallery ( Step 4). &lt;BR&gt;&lt;/LI&gt;
&lt;LI&gt;Click Ctrl-0 to see our DeepZoom Image with out the zooms.&amp;nbsp; You sized it right if you can't easily see the eggs and bunny in the map. &lt;BR&gt;&lt;/LI&gt;
&lt;LI&gt;CLick "Export" in the main toolbar.&amp;nbsp; &lt;BR&gt;&lt;/LI&gt;
&lt;LI&gt;Here we enter the settings for output. &lt;BR&gt;&lt;/LI&gt;
&lt;LI&gt;Leave the "generate collection" unchecked for now. &lt;BR&gt;What Generate Collection does is exports the DeepZoom Image with metadata and at run-time the images can be accessed via the MultiScaleImage.SubImages&amp;nbsp; property.&amp;nbsp;&amp;nbsp; If you can get to these images, you can move them around the composed image ( for layout ) you can also tweak their Opacity. &lt;BR&gt;The reason I am leaving them unchecked is beause there seems to be a bug (at least on my machine) where if I click Generate Collections my images at run-time show at an offset of where they are supposed to be.&amp;nbsp;&amp;nbsp; I have reported it to the DZC team and they are investigating. &lt;BR&gt;&lt;/LI&gt;
&lt;LI&gt;Enter a Name&amp;nbsp; ( "Easter" on the export Dialog). &lt;BR&gt;&lt;/LI&gt;
&lt;LI&gt;I leave the Output path untouched. &lt;BR&gt;This is where having entered a short path in Step 2 above would pay up because their Path dialog does not Wrap and it is fairly small. [Kirupa already said this is improving for next version]. If you opt to change the path, be attentive when you export again, it seems to reset to its default value. &lt;BR&gt;&lt;BR&gt;&lt;A href="http://blogs.msdn.com/blogfiles/jaimer/WindowsLiveWriter/Deepzoomprimerpart12_A83/image_8.png" mce_href="http://blogs.msdn.com/blogfiles/jaimer/WindowsLiveWriter/Deepzoomprimerpart12_A83/image_8.png"&gt;&lt;IMG style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" height=340 alt=image src="http://blogs.msdn.com/blogfiles/jaimer/WindowsLiveWriter/Deepzoomprimerpart12_A83/image_thumb_3.png" width=589 border=0 mce_src="http://blogs.msdn.com/blogfiles/jaimer/WindowsLiveWriter/Deepzoomprimerpart12_A83/image_thumb_3.png"&gt;&lt;/A&gt; &lt;BR&gt;&lt;/LI&gt;
&lt;LI&gt;Now, assuming your output looks similar to mine above, (Create Collection unchecked) Click Export and we are done when it says Export Completed. &lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;&lt;BR&gt;&lt;/P&gt;
&lt;H1&gt;Part 3 - DeepZoom Object Model &lt;BR&gt;&lt;/H1&gt;
&lt;P&gt;Once you have a DeepZoom image, you will need an instance of the MultiScaleImage class in your silverlight application to load that image.&amp;nbsp; Instantiating the MultiScaleImage class can be done from XAML &lt;/P&gt;&lt;PRE class=code&gt;&lt;SPAN style="COLOR: blue"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #a31515"&gt;MultiScaleImage &lt;/SPAN&gt;&lt;SPAN style="COLOR: red"&gt;x&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;:&lt;/SPAN&gt;&lt;SPAN style="COLOR: red"&gt;Name&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;="DeepZoom" &lt;/SPAN&gt;&lt;SPAN style="COLOR: red"&gt;Source&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;="easter/info.bin" /&amp;gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;A href="http://11011.net/software/vspaste" mce_href="http://11011.net/software/vspaste"&gt;&lt;/A&gt;
&lt;P&gt;or from code: &lt;/P&gt;
&lt;P&gt;MultiScaleImage DeepZoom = new MultiScaleImage () ; &lt;/P&gt;
&lt;P&gt;DeepZoom.Source = new Uri ( “easter/info.bin”) ; &lt;/P&gt;
&lt;P&gt;Before&amp;nbsp; going through the DeepZoom API it makes sense to understand the terminology used: &lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Logical Coordinates – is a normalized value (0 to 1) representing a coordinate in the image itself (not the control) &lt;/LI&gt;
&lt;LI&gt;Element Coordinates – is the actual control coordinates. For example in a MultiScaleImage of Width=800, Height =400, when the mouse is at the center, the element coordinates are 400,400.&amp;nbsp; These coordinates are not normalized. &lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;Now, we navigate through the interesting properties and methods in MultiScaleImage&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Source – refers to the Image source; usually info.bin when not using collections or items.bin&amp;nbsp; if using collections.&amp;nbsp; &lt;/LI&gt;
&lt;LI&gt;SubImages – when using collections, this is a reference to all the images in a composed DeepZoom Image. &lt;BR&gt;&lt;/LI&gt;
&lt;LI&gt;ViewportWidth – Specifies the width of the parts of the image to be displayed. The value is in Logical coordinates. &lt;BR&gt;For example:&amp;nbsp; &lt;BR&gt;Width=2 means image is zoomed out and only takes half the space available.&amp;nbsp; &lt;BR&gt;To zoom in, a viewport &amp;lt; 1 is required.&amp;nbsp; ViewportWidth of 0.5 is a 200% zoom. &lt;BR&gt;&lt;/LI&gt;
&lt;LI&gt;ViewportOrigin – the Top,Left corner for the parts of the image to be displayed.&amp;nbsp; This is returned in Logical coordinates.&amp;nbsp; For example, imagine I am panning by 10% each time and I pan twice to the right while zoomed in at 100% (so no zoom), my ViewportOrigin.X will be 0.2. &lt;BR&gt;&lt;/LI&gt;
&lt;LI&gt;UseSprings – gets or set whether DeepZoom animates the transitions ( like ZoomAboutLogicalPoint, updates to ViewportOrigin, etc. ). &lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;The interesting methods are: &lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;ElementToLogicalPoint – takes a coordinate of the control, and gives you a logical ( normalized coordinate). &lt;BR&gt;For example, mouse at Center (400,400) with ViewportWidth=1 and you call ElementToLogical ( ) will return (0.5, 0.5) &lt;BR&gt;&lt;/LI&gt;
&lt;LI&gt;LogicalToElementPoint – takes a logical coordinate (normalized) and returns a point in the MultiScaleImage control where that logical point corresponds to. &lt;BR&gt;&lt;/LI&gt;
&lt;LI&gt;ZoomAboutLogicalPoint – implements the Zoom.&amp;nbsp; The two parameters are the new zoom multiplier - as an increment from current zoom factor in the image - and the Logical point at which to zoom around.&amp;nbsp; &lt;BR&gt;Example of the incremental zoom would be to ZoomAboutLogicalPoint&amp;nbsp; ( 1.5, 0.5, 0.5) .. I will be zoomed in to 1.5 times;&amp;nbsp; if I repeat this operation with same values I am zoomed in at 1.5 * 1.5&amp;nbsp; which is 2.25 times from size where I started. &lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;In my opinion, surprisingly missing from the API were: &lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;The original width and height of the DeepZoomImage&amp;nbsp; (so that I can translate normalized logical coords to physical on the image). &lt;BR&gt;&lt;/LI&gt;
&lt;LI&gt;Zoom – to tell you the current total Zoom level; this one you can get around by keeping track of any zooms you implement. Another possible workaround is that Zoom appears to be 1/ViewportWidth; I can’t think of the scenario where this does not hold, if there is please let me know and again just keep track of your zooms if that happens. &lt;/LI&gt;&lt;/UL&gt;
&lt;H1&gt;Part 4 – Coding a&amp;nbsp; DeepZoom Host User Control &lt;/H1&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&lt;P&gt;The goal here is to code a sample&amp;nbsp; reusable control just to illustrate the points; along the way we will of course implement enough features for our Easter Egg Hunt.&amp;nbsp; [Update: Sorry about belatedness, I started this on 3/22 but had a trip that prevented me from playing around, so I am late from easter] &lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Inside Visual Studio 2008, create a new Silverlight Application; I called it DeepZoomSample. &lt;BR&gt;&lt;/LI&gt;
&lt;LI&gt;Build the application so the Clientbin directory is created. &lt;BR&gt;&lt;/LI&gt;
&lt;LI&gt;Copy the output from the DeepZoom Composer to the Clientbin directory of our Silverlight application. &lt;BR&gt;In my case, I called the output “Easter” so I can go into the output directory from composer and just copy that whole directory to my Silverlight Application’s ClientBin. &lt;BR&gt;&lt;/LI&gt;
&lt;LI&gt;Now that we have our image, we can edit the XAML in Page.Xaml, to show the image. &lt;BR&gt;&lt;PRE class=code&gt;&lt;SPAN style="COLOR: blue"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #a31515"&gt;UserControl &lt;/SPAN&gt;&lt;SPAN style="COLOR: red"&gt;x&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;:&lt;/SPAN&gt;&lt;SPAN style="COLOR: red"&gt;Class&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;="DeepZoomSample.Page"
    &lt;/SPAN&gt;&lt;SPAN style="COLOR: red"&gt;xmlns&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;="http://schemas.microsoft.com/client/2007" 
    &lt;/SPAN&gt;&lt;SPAN style="COLOR: red"&gt;xmlns&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;:&lt;/SPAN&gt;&lt;SPAN style="COLOR: red"&gt;x&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;="http://schemas.microsoft.com/winfx/2006/xaml" 
    &amp;gt;
    &amp;lt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #a31515"&gt;Grid &lt;/SPAN&gt;&lt;SPAN style="COLOR: red"&gt;x&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;:&lt;/SPAN&gt;&lt;SPAN style="COLOR: red"&gt;Name&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;="LayoutRoot" &lt;/SPAN&gt;&lt;SPAN style="COLOR: red"&gt;Background&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;="White"&amp;gt;
        &amp;lt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #a31515"&gt;MultiScaleImage &lt;/SPAN&gt;&lt;SPAN style="COLOR: red"&gt;x&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;:&lt;/SPAN&gt;&lt;SPAN style="COLOR: red"&gt;Name&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;="DeepZoom" &lt;/SPAN&gt;&lt;SPAN style="COLOR: red"&gt;Source&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;="easter/info.bin" /&amp;gt; 
    &amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="COLOR: #a31515"&gt;Grid&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;&amp;gt;
&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="COLOR: #a31515"&gt;UserControl&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/PRE&gt;If you run the application now, you will see the image loads&amp;nbsp; but there is no functionality: zoom and pan have not been implemented.&amp;nbsp; &lt;BR&gt;For zoom, we need to use the mouse wheel, but Silverlight has no native support for it. A good work around is to use Peter Blois’ MouseWheelHelper. This class uses HTML Bridge to listen to the mouse wheel event in the browser and exposes the events to managed code. &lt;BR&gt;&lt;A href="http://11011.net/software/vspaste" mce_href="http://11011.net/software/vspaste"&gt;&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;Add a new code file to your project, I called it MouseWheelHelper. &lt;/LI&gt;
&lt;LI&gt;Copy Peter’s code below into the MouseWheelHelper file. &lt;BR&gt;
&lt;DIV style="OVERFLOW: auto; HEIGHT: 300px"&gt;
&lt;P&gt;using System; &lt;BR&gt;using System.Windows; &lt;BR&gt;using System.Windows.Controls; &lt;BR&gt;using System.Windows.Documents; &lt;BR&gt;using System.Windows.Ink; &lt;BR&gt;using System.Windows.Input; &lt;BR&gt;using System.Windows.Media; &lt;BR&gt;using System.Windows.Media.Animation; &lt;BR&gt;using System.Windows.Shapes; &lt;BR&gt;using System.Windows.Browser; &lt;/P&gt;
&lt;P&gt;namespace DeepZoomSample &lt;BR&gt;{ &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // this code came from Peter Blois,&amp;nbsp; &lt;A href="http://www.blois.us/blog" mce_href="http://www.blois.us/blog"&gt;http://www.blois.us/blog&lt;/A&gt; &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Code ported by Pete blois from Javascript version at &lt;A href="http://adomas.org/javascript-mouse-wheel/" mce_href="http://adomas.org/javascript-mouse-wheel/"&gt;http://adomas.org/javascript-mouse-wheel/&lt;/A&gt; &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public class MouseWheelEventArgs : EventArgs &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; { &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; private double delta; &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; private bool handled = false; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public MouseWheelEventArgs(double delta) &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; { &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.delta = delta; &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public double Delta &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; { &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; get { return this.delta; } &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Use handled to prevent the default browser behavior! &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public bool Handled &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; { &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; get { return this.handled; } &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set { this.handled = value; } &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public class MouseWheelHelper &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; { &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public event EventHandler&amp;lt;MouseWheelEventArgs&amp;gt; Moved; &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; private static Worker worker; &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; private bool isMouseOver = false; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public MouseWheelHelper(FrameworkElement element) &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; { &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (MouseWheelHelper.worker == null) &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MouseWheelHelper.worker = new Worker(); &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MouseWheelHelper.worker.Moved += this.HandleMouseWheel; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; element.MouseEnter += this.HandleMouseEnter; &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; element.MouseLeave += this.HandleMouseLeave; &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; element.MouseMove += this.HandleMouseMove; &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; private void HandleMouseWheel(object sender, MouseWheelEventArgs args) &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; { &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (this.isMouseOver) &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.Moved(this, args); &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; private void HandleMouseEnter(object sender, EventArgs e) &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; { &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.isMouseOver = true; &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; private void HandleMouseLeave(object sender, EventArgs e) &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; { &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.isMouseOver = false; &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; private void HandleMouseMove(object sender, EventArgs e) &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; { &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.isMouseOver = true; &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; private class Worker &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; { &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public event EventHandler&amp;lt;MouseWheelEventArgs&amp;gt; Moved; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public Worker() &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; { &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (HtmlPage.IsEnabled) &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; { &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; HtmlPage.Window.AttachEvent("DOMMouseScroll", this.HandleMouseWheel); &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; HtmlPage.Window.AttachEvent("onmousewheel", this.HandleMouseWheel); &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; HtmlPage.Document.AttachEvent("onmousewheel", this.HandleMouseWheel); &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; private void HandleMouseWheel(object sender, HtmlEventArgs args) &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; { &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; double delta = 0; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ScriptObject eventObj = args.EventObject; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (eventObj.GetProperty("wheelDelta") != null) &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; { &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; delta = ((double)eventObj.GetProperty("wheelDelta")) / 120; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (HtmlPage.Window.GetProperty("opera") != null) &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; delta = -delta; &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else if (eventObj.GetProperty("detail") != null) &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; { &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; delta = -((double)eventObj.GetProperty("detail")) / 3; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (HtmlPage.BrowserInformation.UserAgent.IndexOf("Macintosh") != -1) &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; delta = delta * 3; &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (delta != 0 &amp;amp;&amp;amp; this.Moved != null) &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; { &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MouseWheelEventArgs wheelArgs = new MouseWheelEventArgs(delta); &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.Moved(this, wheelArgs); &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (wheelArgs.Handled) &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; args.PreventDefault(); &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;BR&gt;}&lt;/P&gt;&lt;BR&gt;&lt;/DIV&gt;&lt;BR&gt;&lt;BR&gt;MouseWheelHelper fires a Moved Event whenever the Wheel moves. The EventArgs is a MouseWheelEventArgs, which has the delta property. Delta is a normalized property (0 to 1), for now all we look at is whether it is greater than 0 or not. &lt;BR&gt;If Delta is greater than 0, then the wheel has rotated away from the user; if Delta is a negative number, then the wheel has rotated toward the user. &lt;BR&gt;&lt;BR&gt;&lt;/LI&gt;
&lt;LI&gt;Before we handle the Moved event, let’s add a ZoomFactor property to our control, this will be the increment/decrement on a wheel operation. The default value is 1.3, which is a 30% increment.&amp;nbsp; Nothing scientific behind this number, I am pretty much just ‘copying’ what I see every other sample do. I think the number works OK. &lt;PRE class=code&gt;&lt;SPAN style="COLOR: blue"&gt;&lt;FONT face=Verdana color=#333333&gt; &lt;/FONT&gt;protected double &lt;/SPAN&gt;_defaultZoom = 1.3; 
       &lt;SPAN style="COLOR: blue"&gt;public double &lt;/SPAN&gt;DefaultZoomFactor
       {
           &lt;SPAN style="COLOR: blue"&gt;get
           &lt;/SPAN&gt;{
               &lt;SPAN style="COLOR: blue"&gt;return &lt;/SPAN&gt;_defaultZoom; 
           }
           &lt;SPAN style="COLOR: blue"&gt;set
           &lt;/SPAN&gt;{
               _defaultZoom = &lt;SPAN style="COLOR: blue"&gt;value&lt;/SPAN&gt;; 
           } 
       }&lt;/PRE&gt;&lt;A href="http://11011.net/software/vspaste" mce_href="http://11011.net/software/vspaste"&gt;&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;We also add a CurrentTotalZoom property, this will be a cached version of overall zoom level (since we can’t query this from the MultiScaleImage API.&amp;nbsp; I also added a MaxZoomIn and MaxZoomOut to prevent the image from going too far in (is there such a thing?) or too far out. Too Far out did matter as the image can disapper if you go too far.&amp;nbsp; In my case I picked my Maximum values arbitrarily. &lt;BR&gt;
&lt;DIV style="OVERFLOW: auto; HEIGHT: 300px"&gt;
&lt;P&gt;&lt;BR&gt;private double _currentTotalZoom = 1.0; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public double CurrentTotalZoom &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; { &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; get { return _currentTotalZoom; } &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set { _currentTotalZoom = value; } &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; private double _maxZoomIn = 5000; &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; protected double MaxZoomIn &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; { &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; get { return _maxZoomIn; } &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set { _maxZoomIn = value; } &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; private double _maxZoomOut = 0.001; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; protected double MaxZoomOut &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; { &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; get { return _maxZoomOut; } &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set { _maxZoomOut = value; } &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;/P&gt;&lt;/DIV&gt;&lt;PRE class=code&gt;&lt;FONT color=#0000ff&gt;&lt;BR&gt;&lt;/FONT&gt;&lt;/PRE&gt;&lt;A href="http://11011.net/software/vspaste" mce_href="http://11011.net/software/vspaste"&gt;&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;Now, we can add a DoZoom function to our class, this will be called when there is a Zoom operation.&amp;nbsp;&amp;nbsp; The parameters for it are: the new Zoom level RELATIVE to where the image is at,&amp;nbsp; and&amp;nbsp; a point in Element Coordinates since most likely we will be zooming around the mouse, and we get Element coordiantes out of that. &lt;PRE class=code&gt;&lt;FONT color=#808080&gt;&lt;BR&gt;&lt;BR&gt;&lt;/FONT&gt;&lt;/PRE&gt;&lt;PRE class=code&gt;&lt;SPAN style="COLOR: gray"&gt;/// &amp;lt;summary&amp;gt;
      /// &lt;/SPAN&gt;&lt;SPAN style="COLOR: green"&gt;Performs a Zoom operation relative to where Image is at. 
      &lt;/SPAN&gt;&lt;SPAN style="COLOR: gray"&gt;/// &lt;/SPAN&gt;&lt;SPAN style="COLOR: green"&gt;Example, call DoZoom twice with a Zoom of 1.25 will lead to an image that is zoomed at 
      &lt;/SPAN&gt;&lt;SPAN style="COLOR: gray"&gt;/// &lt;/SPAN&gt;&lt;SPAN style="COLOR: green"&gt;1.25 after first time and ( 1.25 * 1.25 for second time, which is a 1.56
      &lt;/SPAN&gt;&lt;SPAN style="COLOR: gray"&gt;/// &amp;lt;/summary&amp;gt;
      /// &amp;lt;param name="relativeZoom"&amp;gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: green"&gt;new zoom level; this is a RELATIVE value not absolute.&lt;/SPAN&gt;&lt;SPAN style="COLOR: gray"&gt;&amp;lt;/param&amp;gt;
      /// &amp;lt;param name="elementPoint"&amp;gt;&amp;lt;/param&amp;gt;
      &lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;void &lt;/SPAN&gt;DoZoom(&lt;SPAN style="COLOR: blue"&gt;double &lt;/SPAN&gt;relativeZoom , &lt;SPAN style="COLOR: #2b91af"&gt;Point &lt;/SPAN&gt;elementPoint)
      {
          &lt;SPAN style="COLOR: blue"&gt;if &lt;/SPAN&gt;(  _currentTotalZoom * relativeZoom &amp;lt; MaxZoomOut ||
                _currentTotalZoom * relativeZoom &amp;gt; MaxZoomIn) 
              &lt;SPAN style="COLOR: blue"&gt;return&lt;/SPAN&gt;; 
 
          &lt;SPAN style="COLOR: #2b91af"&gt;Point &lt;/SPAN&gt;p = DeepZoom.ElementToLogicalPoint(elementPoint);
          DeepZoom.ZoomAboutLogicalPoint(relativeZoom, p.X, p.Y);
          &lt;SPAN style="COLOR: blue"&gt;this&lt;/SPAN&gt;.Zoom = relativeZoom;
          _currentTotalZoom *= relativeZoom; 
                } &lt;/PRE&gt;&lt;A href="http://11011.net/software/vspaste" mce_href="http://11011.net/software/vspaste"&gt;&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;Now we are ready to handle the MouseWheelHelper.Moved event.&amp;nbsp;&amp;nbsp; We will do it in three parts:&amp;nbsp; 
&lt;OL&gt;
&lt;LI&gt;We will subscribe to MouseMove event in the MultiScaleImage, so we can keep track of where the mouse is; we need this because MouseWheelHelper.Moved does not give us a MousePosition, and there is no way to query MousePosition in Silverlight2 outside of a Mouse EventHandler. &lt;BR&gt;&lt;BR&gt;// inside the Loaded event for the user control &lt;BR&gt;//{ &lt;BR&gt;DeepZoom.MouseMove += &lt;SPAN style="COLOR: blue"&gt;new&lt;/SPAN&gt;&lt;SPAN style="COLOR: #2b91af"&gt;MouseEventHandler&lt;/SPAN&gt;(DeepZoom_MouseMove); &lt;BR&gt;_lastMousePosition = new Point ( DeepZoom.ActualWidth /2 , DeepZoom.ActualHeight /2); &lt;BR&gt;//} &lt;BR&gt;&amp;nbsp; &lt;BR&gt;protected Point _lastMousePosition; &lt;BR&gt;&lt;BR&gt;&lt;SPAN style="COLOR: blue"&gt;void &lt;/SPAN&gt;DeepZoom_MouseMove(&lt;SPAN style="COLOR: blue"&gt;object&lt;/SPAN&gt;sender, &lt;SPAN style="COLOR: #2b91af"&gt;MouseEventArgs &lt;/SPAN&gt;e) &lt;BR&gt;{ &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _lastMousePosition = e.GetPosition(DeepZoom); &lt;BR&gt;} &lt;BR&gt;&lt;A href="http://11011.net/software/vspaste" mce_href="http://11011.net/software/vspaste"&gt;&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;Now we instantiate a MouseWheelHelper and subscribe to Moved event &lt;BR&gt;&lt;BR&gt;// inside the Loaded Event for UserControl &lt;BR&gt;&lt;SPAN style="COLOR: #2b91af"&gt;MouseWheelHelper &lt;/SPAN&gt;mousewheelhelper = &lt;SPAN style="COLOR: blue"&gt;new &lt;/SPAN&gt;&lt;SPAN style="COLOR: #2b91af"&gt;MouseWheelHelper&lt;/SPAN&gt;(&lt;SPAN style="COLOR: blue"&gt;this&lt;/SPAN&gt;); &lt;BR&gt;mousewheelhelper.Moved += &lt;SPAN style="COLOR: blue"&gt;new&lt;/SPAN&gt;&lt;SPAN style="COLOR: #2b91af"&gt;EventHandler&lt;/SPAN&gt;&amp;lt;&lt;SPAN style="COLOR: #2b91af"&gt;MouseWheelEventArgs&lt;/SPAN&gt;&amp;gt;(OnMouseWheelMoved); &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;A href="http://11011.net/software/vspaste" mce_href="http://11011.net/software/vspaste"&gt;&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;We add the OnMouseWheelMoved function to the UserControl class.. &lt;PRE class=code&gt;&lt;SPAN style="COLOR: blue"&gt;void &lt;/SPAN&gt;OnMouseWheelMoved(&lt;SPAN style="COLOR: blue"&gt;object &lt;/SPAN&gt;sender, &lt;SPAN style="COLOR: #2b91af"&gt;MouseWheelEventArgs &lt;/SPAN&gt;e)
{   
&lt;SPAN style="COLOR: green"&gt;   // e.Delta &amp;gt; 0 == wheel moved away, zoom in 
&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;   if &lt;/SPAN&gt;(e.Delta &amp;gt; 0)
   {
      DoZoom( DefaultZoomFactor, _lastMousePosition);
   }
&lt;SPAN style="COLOR: blue"&gt;   else
&lt;/SPAN&gt;   {
&lt;SPAN style="COLOR: green"&gt;      // Zoom out 
&lt;/SPAN&gt;      DoZoom( 1/ DefaultZoomFactor, _lastMousePosition);
   } 
}&lt;BR&gt; &lt;BR&gt;&lt;/PRE&gt;&lt;/LI&gt;
&lt;LI&gt;NOTE: If you compare the source above with the code in the sample source, they are slightly different. &lt;BR&gt;In the sample source there is two approaches to handling Zoom, and there is a boolean flag called _useRelatives that controls this. if you set _useRelatives to true, it will zoom based in relation to a last zoom; I think this makes it more complicated but for some reason most samples I have seen of DeepZoom use this calculation.&amp;nbsp; I think the behavior is the same than the approach I took, but the math is simpler with the approach in the steps above.&amp;nbsp;&amp;nbsp; I did add both in case I find later that there was a scenario addressed by the _useRelatives approach. &lt;BR&gt;&lt;BR&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;
&lt;LI&gt;At this point we should be able to run the application and get Zoom to work (in and out) around the mouse location.&amp;nbsp; Compile the app and run it to make sure we are making progress. &lt;BR&gt;&lt;/LI&gt;
&lt;LI&gt;To Pan, we need to detect the MouseLeftButtonDown and MouseLeftButtonUp,&amp;nbsp; the assumption is we will pan when the mouse is down, and pan in the direction of the Mouse movement and then stop panning when the mouse is up. &lt;BR&gt;
&lt;OL&gt;
&lt;LI&gt;Let’s add a handler for MouseLeftButtonDown, we add the listener in the UserControl’s Loaded event.&amp;nbsp; This handler will set a variable called _isDragging&amp;nbsp; to flag that the mouse is down; we will use this flag on the MouseMove handler. &lt;BR&gt;&lt;BR&gt;// inside the Loaded function, we add code behind our MouseWheelHelper code added earlier.. &lt;BR&gt;DeepZoom.MouseLeftButtonDown += &lt;SPAN style="COLOR: blue"&gt;new&lt;/SPAN&gt;&lt;SPAN style="COLOR: #2b91af"&gt;MouseButtonEventHandler&lt;/SPAN&gt;(DeepZoom_MouseLeftButtonDown); &lt;BR&gt;&lt;A href="http://11011.net/software/vspaste" mce_href="http://11011.net/software/vspaste"&gt;&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;The handler looks like this: &lt;PRE class=code&gt;&lt;SPAN style="COLOR: blue"&gt;protected bool &lt;/SPAN&gt;_isDragging = &lt;SPAN style="COLOR: blue"&gt;false&lt;/SPAN&gt;;
&lt;SPAN style="COLOR: blue"&gt;protected &lt;/SPAN&gt;&lt;SPAN style="COLOR: #2b91af"&gt;Point &lt;/SPAN&gt;_lastDragViewportOrigin; 
&lt;SPAN style="COLOR: blue"&gt;void &lt;/SPAN&gt;DeepZoom_MouseLeftButtonDown(&lt;SPAN style="COLOR: blue"&gt;object &lt;/SPAN&gt;sender, &lt;SPAN style="COLOR: #2b91af"&gt;MouseButtonEventArgs &lt;/SPAN&gt;e)
{
            &lt;SPAN style="COLOR: blue"&gt;this&lt;/SPAN&gt;._lastDragViewportOrigin = DeepZoom.ViewportOrigin;
            &lt;SPAN style="COLOR: blue"&gt;this&lt;/SPAN&gt;._lastMousePosition = e.GetPosition(DeepZoom);
            &lt;SPAN style="COLOR: blue"&gt;this&lt;/SPAN&gt;._isDragging = &lt;SPAN style="COLOR: blue"&gt;true&lt;/SPAN&gt;; 
           
}&lt;/PRE&gt;&lt;A href="http://11011.net/software/vspaste" mce_href="http://11011.net/software/vspaste"&gt;&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;Now we subscribe to MouseLeftButtonUp, inside Loaded function&amp;nbsp; and we add the handler function for it. &lt;BR&gt;&lt;BR&gt;//&amp;nbsp; The one liner below goes in the Page_Loaded event handler &lt;BR&gt;DeepZoom.MouseLeftButtonUp += &lt;SPAN style="COLOR: blue"&gt;new&lt;/SPAN&gt;&lt;SPAN style="COLOR: #2b91af"&gt;MouseButtonEventHandler&lt;/SPAN&gt;(DeepZoom_MouseLeftButtonUp); &lt;BR&gt;&lt;BR&gt;&lt;BR&gt;&lt;SPAN style="COLOR: blue"&gt;void &lt;/SPAN&gt;DeepZoom_MouseLeftButtonUp(&lt;SPAN style="COLOR: blue"&gt;object&lt;/SPAN&gt;sender, &lt;SPAN style="COLOR: #2b91af"&gt;MouseButtonEventArgs &lt;/SPAN&gt;e) &lt;BR&gt;{ &lt;BR&gt;&lt;SPAN style="COLOR: blue"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; this&lt;/SPAN&gt;._isDragging = &lt;SPAN style="COLOR: blue"&gt;false&lt;/SPAN&gt;; &lt;BR&gt;} &lt;BR&gt;&lt;A href="http://11011.net/software/vspaste" mce_href="http://11011.net/software/vspaste"&gt;&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;Now we tweak the code inside MouseMove&amp;nbsp; to Change the ViewportOrigin to perform the Pan operation. &lt;BR&gt;&lt;PRE class=code&gt;&lt;SPAN style="COLOR: blue"&gt;void &lt;/SPAN&gt;DeepZoom_MouseMove(&lt;SPAN style="COLOR: blue"&gt;object &lt;/SPAN&gt;sender, &lt;SPAN style="COLOR: #2b91af"&gt;MouseEventArgs &lt;/SPAN&gt;e)
{
&lt;SPAN style="COLOR: blue"&gt;  if &lt;/SPAN&gt;(_isDragging)
  {
&lt;SPAN style="COLOR: #2b91af"&gt;&lt;FONT color=#333333&gt;   &lt;/FONT&gt;Point &lt;/SPAN&gt;newViewport = _lastDragViewportOrigin;
   &lt;SPAN style="COLOR: #2b91af"&gt;Point &lt;/SPAN&gt;currentMousePosition = e.GetPosition(DeepZoom);
   newViewport.X += (_lastMousePosition.X - currentMousePosition.X) &lt;BR&gt;/ &lt;SPAN style="COLOR: blue"&gt;this&lt;/SPAN&gt;.DeepZoom.ActualWidth * &lt;SPAN style="COLOR: blue"&gt;this&lt;/SPAN&gt;.DeepZoom.ViewportWidth;
   newViewport.Y += (_lastMousePosition.Y - currentMousePosition.Y) &lt;BR&gt;/ &lt;SPAN style="COLOR: blue"&gt;this&lt;/SPAN&gt;.DeepZoom.ActualWidth * &lt;SPAN style="COLOR: blue"&gt;this&lt;/SPAN&gt;.DeepZoom.ViewportWidth;
   &lt;SPAN style="COLOR: blue"&gt;this&lt;/SPAN&gt;.DeepZoom.ViewportOrigin = newViewport;
   _lastDragViewportOrigin = newViewport; 
  }
  // NOTE: it is important this be after the isDragging check … &lt;BR&gt;  // since this updates last position, which is used to compare for dragging. 
 _lastMousePosition = e.GetPosition(DeepZoom);
}&lt;/PRE&gt;&lt;A href="http://11011.net/software/vspaste" mce_href="http://11011.net/software/vspaste"&gt;&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;We should also detect the MouseLeave event, and if we are in the middle of a Pan, we need to reset the _isDragging flag. &lt;BR&gt;&lt;BR&gt;// inside the UserControl Loaded handler DeepZoom.MouseLeave += &lt;SPAN style="COLOR: blue"&gt;new&lt;/SPAN&gt;&lt;SPAN style="COLOR: #2b91af"&gt;MouseEventHandler&lt;/SPAN&gt;(DeepZoom_MouseLeave);&lt;SPAN style="COLOR: blue"&gt; &lt;BR&gt;void &lt;/SPAN&gt;DeepZoom_MouseLeave(&lt;SPAN style="COLOR: blue"&gt;object&lt;/SPAN&gt;sender, &lt;SPAN style="COLOR: #2b91af"&gt;MouseEventArgs &lt;/SPAN&gt;e) &lt;BR&gt;{ &lt;BR&gt;&lt;SPAN style="COLOR: blue"&gt;this&lt;/SPAN&gt;._isDragging = &lt;SPAN style="COLOR: blue"&gt;false&lt;/SPAN&gt;; &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="COLOR: blue"&gt;this&lt;/SPAN&gt;.DeepZoom.Cursor = &lt;SPAN style="COLOR: #2b91af"&gt;Cursors&lt;/SPAN&gt;.Arrow;&amp;nbsp; &lt;BR&gt;}&lt;A href="http://11011.net/software/vspaste" mce_href="http://11011.net/software/vspaste"&gt;&lt;/A&gt; &lt;/LI&gt;
&lt;LI&gt;&lt;BR&gt;&lt;BR&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;
&lt;LI&gt;&amp;nbsp; That is it for the basics and the ‘hard stuff’ … with not too many lines of code, we have Zoom &amp;amp; Pan in our host.&amp;nbsp; Along the way we added a few properties we can reuse to create UI around our DeepZoom image. &lt;BR&gt;&lt;BR&gt;&lt;/LI&gt;&lt;/OL&gt;
&lt;H1&gt;Part 4.1 Adding more UI to navigate in a DeepZoom Control. &lt;BR&gt;&lt;/H1&gt;
&lt;P&gt;In the last sections I took it slow and walked through the code to explain what we were working on.&amp;nbsp; Going forward below will pick up the pace a bit, and the original code will be tweaked to get into a host control with a bit more navigation and troubleshooting advise.&amp;nbsp; &lt;BR&gt;&lt;/P&gt;
&lt;TABLE class="" cellSpacing=0 cellPadding=2 width="100%" border=0&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class="" vAlign=top&gt;We begin by adding a Navigation wheel to the UserControl.xaml.&amp;nbsp; The wheel has four repeat buttons with arrows pointing east,west,north, south; these buttons will be used to pan in the respective direction. &lt;BR&gt;&lt;BR&gt;At the center of the wheel, there is a regular button, which takes you home ( to where there is no Zoom, no panning, etc. ) &lt;/TD&gt;
&lt;TD class="" vAlign=top width=200&gt;&lt;BR&gt;&lt;A href="http://blogs.msdn.com/blogfiles/jaimer/WindowsLiveWriter/Deepzoomprimerpart12_A83/image_10.png" mce_href="http://blogs.msdn.com/blogfiles/jaimer/WindowsLiveWriter/Deepzoomprimerpart12_A83/image_10.png"&gt;&lt;IMG style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" height=98 alt=image src="http://blogs.msdn.com/blogfiles/jaimer/WindowsLiveWriter/Deepzoomprimerpart12_A83/image_thumb_4.png" width=100 border=0 mce_src="http://blogs.msdn.com/blogfiles/jaimer/WindowsLiveWriter/Deepzoomprimerpart12_A83/image_thumb_4.png"&gt;&lt;/A&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;
&lt;OL&gt;
&lt;LI&gt;Implementing Panning is done by changing the viewportOrigin. We have a choice of Panning relative to control size and relative to ImageSize. Let me explain: &lt;BR&gt;&lt;BR&gt;If the controls ViewPortWidth is 1.0 – and we pan by a Logical increment of 0.1&amp;nbsp; we are panning 10 percent on a direction. This % seems reasonable. &lt;BR&gt;If however we are zoomed in 500% ( viewportWidth = 0.2 ) and we do a Pan of 0.1 (logical)&amp;nbsp; then we are going to pan by a lot ( 50% of what is visible).&amp;nbsp; So we need to scale our original 0.1 increment by the ViewportWidth.&amp;nbsp; Don’t you think? &lt;BR&gt;&lt;BR&gt;Here is what I did: 
&lt;OL&gt;
&lt;LI&gt;Added a Property of type double called&amp;nbsp; PanPercent.&amp;nbsp;&amp;nbsp; This property holds the increment. You can set it from XAML; default is 0.1&amp;nbsp; ( aka 10% ) &lt;/LI&gt;
&lt;LI&gt;Added a property of type bool called UseViewportScaleOnPan.&amp;nbsp; If this is true, we will pan by&amp;nbsp; PanPercent * ViewportWidth; if this is false we pan by PanPercent. &lt;BR&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;
&lt;LI&gt;Now we are ready for Panning. We add event handlers for all our Pan RepeatButtons: &lt;BR&gt;&lt;PRE class=code&gt;&lt;SPAN style="COLOR: blue"&gt;this&lt;/SPAN&gt;.PanRight.Click += &lt;SPAN style="COLOR: blue"&gt;new &lt;/SPAN&gt;&lt;SPAN style="COLOR: #2b91af"&gt;RoutedEventHandler&lt;/SPAN&gt;(PanRight_Click);
&lt;SPAN style="COLOR: blue"&gt;this&lt;/SPAN&gt;.PanLeft.Click += &lt;SPAN style="COLOR: blue"&gt;new &lt;/SPAN&gt;&lt;SPAN style="COLOR: #2b91af"&gt;RoutedEventHandler&lt;/SPAN&gt;(PanLeft_Click);
&lt;SPAN style="COLOR: blue"&gt;this&lt;/SPAN&gt;.Home.Click += &lt;SPAN style="COLOR: blue"&gt;new &lt;/SPAN&gt;&lt;SPAN style="COLOR: #2b91af"&gt;RoutedEventHandler&lt;/SPAN&gt;(Home_Click);
&lt;SPAN style="COLOR: blue"&gt;this&lt;/SPAN&gt;.PanBottom.Click += &lt;SPAN style="COLOR: blue"&gt;new &lt;/SPAN&gt;&lt;SPAN style="COLOR: #2b91af"&gt;RoutedEventHandler&lt;/SPAN&gt;(PanBottom_Click);
&lt;SPAN style="COLOR: blue"&gt;this&lt;/SPAN&gt;.PanTop.Click += &lt;SPAN style="COLOR: blue"&gt;new &lt;/SPAN&gt;&lt;SPAN style="COLOR: #2b91af"&gt;RoutedEventHandler&lt;/SPAN&gt;(PanTop_Click);&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;&lt;/PRE&gt;&lt;A href="http://11011.net/software/vspaste" mce_href="http://11011.net/software/vspaste"&gt;&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;Each of the event handlers calls the Pan function with their respective direction: &lt;PRE class=code&gt;&lt;SPAN style="COLOR: blue"&gt;void &lt;/SPAN&gt;Pan(&lt;SPAN style="COLOR: #2b91af"&gt;PanDirection &lt;/SPAN&gt;direction)
{
&lt;SPAN style="COLOR: blue"&gt;double &lt;/SPAN&gt;percent = PanPercent; 
            
&lt;SPAN style="COLOR: blue"&gt;if &lt;/SPAN&gt;( UseViewportScaleOnPan ) 
    percent *= &lt;SPAN style="COLOR: blue"&gt;this&lt;/SPAN&gt;.DeepZoom.ViewportWidth; 
&lt;SPAN style="COLOR: blue"&gt;switch &lt;/SPAN&gt;(direction)
{               
&lt;SPAN style="COLOR: blue"&gt;&lt;FONT color=#333333&gt;   &lt;/FONT&gt;case &lt;/SPAN&gt;&lt;SPAN style="COLOR: #2b91af"&gt;PanDirection&lt;/SPAN&gt;.East:
&lt;SPAN style="COLOR: blue"&gt;&lt;FONT color=#333333&gt;      &lt;/FONT&gt;this&lt;/SPAN&gt;.DeepZoom.ViewportOrigin =
         &lt;SPAN style="COLOR: blue"&gt;new &lt;/SPAN&gt;&lt;SPAN style="COLOR: #2b91af"&gt;Point&lt;/SPAN&gt;(&lt;SPAN style="COLOR: blue"&gt;this&lt;/SPAN&gt;.DeepZoom.ViewportOrigin.X - &lt;SPAN style="COLOR: #2b91af"&gt;Math&lt;/SPAN&gt;.Min(percent, &lt;SPAN style="COLOR: blue"&gt;this&lt;/SPAN&gt;.DeepZoom.ViewportOrigin.X),
      &lt;SPAN style="COLOR: blue"&gt;this&lt;/SPAN&gt;.DeepZoom.ViewportOrigin.Y);
         &lt;SPAN style="COLOR: blue"&gt;break&lt;/SPAN&gt;; 
&lt;SPAN style="COLOR: blue"&gt;&lt;FONT color=#333333&gt;   &lt;/FONT&gt;case &lt;/SPAN&gt;&lt;SPAN style="COLOR: #2b91af"&gt;PanDirection&lt;/SPAN&gt;.West:
       &lt;SPAN style="COLOR: blue"&gt;this&lt;/SPAN&gt;.DeepZoom.ViewportOrigin =
           &lt;SPAN style="COLOR: blue"&gt;new &lt;/SPAN&gt;&lt;SPAN style="COLOR: #2b91af"&gt;Point&lt;/SPAN&gt;(&lt;SPAN style="COLOR: blue"&gt;this&lt;/SPAN&gt;.DeepZoom.ViewportOrigin.X + &lt;SPAN style="COLOR: #2b91af"&gt;Math&lt;/SPAN&gt;.Min(percent, (1.0 - &lt;SPAN style="COLOR: blue"&gt;this&lt;/SPAN&gt;.DeepZoom.ViewportOrigin.X)),
            &lt;SPAN style="COLOR: blue"&gt;this&lt;/SPAN&gt;.DeepZoom.ViewportOrigin.Y);
                    &lt;SPAN style="COLOR: blue"&gt;break&lt;/SPAN&gt;; 
&lt;SPAN style="COLOR: blue"&gt;&lt;FONT color=#333333&gt;    &lt;/FONT&gt;case &lt;/SPAN&gt;&lt;SPAN style="COLOR: #2b91af"&gt;PanDirection&lt;/SPAN&gt;.South :
         &lt;SPAN style="COLOR: blue"&gt;this&lt;/SPAN&gt;.DeepZoom.ViewportOrigin =
          &lt;SPAN style="COLOR: blue"&gt;new &lt;/SPAN&gt;&lt;SPAN style="COLOR: #2b91af"&gt;Point&lt;/SPAN&gt;(&lt;SPAN style="COLOR: blue"&gt;this&lt;/SPAN&gt;.DeepZoom.ViewportOrigin.X ,
           &lt;SPAN style="COLOR: blue"&gt;this&lt;/SPAN&gt;.DeepZoom.ViewportOrigin.Y + &lt;SPAN style="COLOR: #2b91af"&gt;Math&lt;/SPAN&gt;.Min( percent, 1.0 - &lt;SPAN style="COLOR: blue"&gt;this&lt;/SPAN&gt;.DeepZoom.ViewportOrigin.Y));
        &lt;SPAN style="COLOR: blue"&gt;break&lt;/SPAN&gt;; 
     &lt;SPAN style="COLOR: blue"&gt;case &lt;/SPAN&gt;&lt;SPAN style="COLOR: #2b91af"&gt;PanDirection&lt;/SPAN&gt;.North :
          &lt;SPAN style="COLOR: blue"&gt;this&lt;/SPAN&gt;.DeepZoom.ViewportOrigin =
             &lt;SPAN style="COLOR: blue"&gt;new &lt;/SPAN&gt;&lt;SPAN style="COLOR: #2b91af"&gt;Point&lt;/SPAN&gt;(&lt;SPAN style="COLOR: blue"&gt;this&lt;/SPAN&gt;.DeepZoom.ViewportOrigin.X,
             &lt;SPAN style="COLOR: blue"&gt;this&lt;/SPAN&gt;.DeepZoom.ViewportOrigin.Y - &lt;SPAN style="COLOR: #2b91af"&gt;Math&lt;/SPAN&gt;.Min( percent, &lt;SPAN style="COLOR: blue"&gt;this&lt;/SPAN&gt;.DeepZoom.ViewportOrigin.Y));
          &lt;SPAN style="COLOR: blue"&gt;break&lt;/SPAN&gt;; 
     } &lt;BR&gt;}&lt;BR&gt;&lt;BR&gt;&lt;/PRE&gt;&lt;/LI&gt;&lt;A href="http://11011.net/software/vspaste" mce_href="http://11011.net/software/vspaste"&gt;&lt;/A&gt;
&lt;LI&gt;Panning to Home is a combination of setting the ViewportOrigin to 0,0 and setting the ViewportWidth to 1 &lt;BR&gt;&lt;BR&gt;&lt;SPAN style="COLOR: blue"&gt;void &lt;/SPAN&gt;Home_Click(&lt;SPAN style="COLOR: blue"&gt;object &lt;/SPAN&gt;sender, &lt;SPAN style="COLOR: #2b91af"&gt;RoutedEventArgs &lt;/SPAN&gt;e) { &lt;BR&gt;&lt;SPAN style="COLOR: blue"&gt;this&lt;/SPAN&gt;.DeepZoom.ViewportOrigin = &lt;SPAN style="COLOR: blue"&gt;new &lt;/SPAN&gt;&lt;SPAN style="COLOR: #2b91af"&gt;Point&lt;/SPAN&gt;(0, 0); &lt;BR&gt;&lt;SPAN style="COLOR: blue"&gt;this&lt;/SPAN&gt;.DeepZoom.ViewportWidth = 1; } &lt;BR&gt;&lt;BR&gt;&lt;/LI&gt;
&lt;LI&gt;Next thing is to implement Zoom in and Zoom Out; these are also trivial, the only decision to make is where to Zoom, I needed two approaches: &lt;BR&gt;When Zooming using keyboard,&amp;nbsp; Ctrl+ Ctrl- (on Windows)&amp;nbsp; I wanted to Zoom at the mousePosition.&amp;nbsp; &lt;BR&gt;When zooming using the magnifying glass icons I added to the UI, I can not use the mousePosition – as I knew the mouse was where the magnifying glass – so I zoomed around the center of the control. &lt;BR&gt;&lt;BR&gt;Let’s begin with simple ZoomIn using Click from magnifying glass: &lt;BR&gt;&lt;SPAN style="COLOR: blue"&gt;&lt;BR&gt;void &lt;/SPAN&gt;btnZoomIn_Click(&lt;SPAN style="COLOR: blue"&gt;object&lt;/SPAN&gt;sender, &lt;SPAN style="COLOR: #2b91af"&gt;RoutedEventArgs &lt;/SPAN&gt;e) &lt;BR&gt;{ &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ZoomIn( &lt;SPAN style="COLOR: blue"&gt;new&lt;/SPAN&gt;&lt;SPAN style="COLOR: #2b91af"&gt;Point&lt;/SPAN&gt;( DeepZoom.ActualWidth / 2 , DeepZoom.ActualHeight / 2));&amp;nbsp; &lt;BR&gt;} &lt;BR&gt;&lt;PRE class=code&gt;&lt;SPAN style="COLOR: gray"&gt;/// &amp;lt;summary&amp;gt;
/// &lt;/SPAN&gt;&lt;SPAN style="COLOR: green"&gt;Zooms in around an ELEMENT Coordinate..  
&lt;/SPAN&gt;&lt;SPAN style="COLOR: gray"&gt;/// &lt;/SPAN&gt;&lt;SPAN style="COLOR: green"&gt;I technically did not need this function to abstract and could have called DoZoom directly 
&lt;/SPAN&gt;&lt;SPAN style="COLOR: gray"&gt;/// &amp;lt;/summary&amp;gt;
/// &amp;lt;param name="p"&amp;gt;&amp;lt;/param&amp;gt;
&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;void &lt;/SPAN&gt;ZoomIn( &lt;SPAN style="COLOR: #2b91af"&gt;Point &lt;/SPAN&gt;p )
{
    &lt;SPAN style="COLOR: blue"&gt;if &lt;/SPAN&gt;(_useRelatives)
        DoRelativeZoom(Zoom / DefaultZoomFactor, p, &lt;SPAN style="COLOR: #2b91af"&gt;ZoomDirection&lt;/SPAN&gt;.In);
    &lt;SPAN style="COLOR: blue"&gt;else
        &lt;/SPAN&gt;DoZoom(DefaultZoomFactor, p );
} &lt;/PRE&gt;&lt;A href="http://11011.net/software/vspaste" mce_href="http://11011.net/software/vspaste"&gt;&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;When zooming from Keyboard.&amp;nbsp; The “gotcha” was that the DeepZoomImage is a FrameworkElement and it does not receive focus (in Silverlight Focus is at Control class), so what I did was listen for Keyboard event in the Grid that is the top container in my Host UserControl.&amp;nbsp; &lt;PRE class=code&gt;&lt;SPAN style="COLOR: blue"&gt;this&lt;/SPAN&gt;.LayoutRoot.KeyUp += &lt;SPAN style="COLOR: blue"&gt;new &lt;/SPAN&gt;&lt;SPAN style="COLOR: #2b91af"&gt;KeyEventHandler&lt;/SPAN&gt;(DeepZoom_KeyUp);&lt;BR&gt;&lt;/PRE&gt;&lt;A href="http://11011.net/software/vspaste" mce_href="http://11011.net/software/vspaste"&gt;&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;Another surprise was that + (by pressing Shift+9) on my machine turned out to be a keycode, not a standard key.&amp;nbsp; I am not a keyboard expert in Silverlight (yet) but from what I read, keycodes can be different across platform so I added code to check in case I am running in the Mac. I checked using the Environment.OSVersion property.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Please double check this code, as I was pretty lazy about what running on Windows or Mac means.&amp;nbsp; &lt;/LI&gt;
&lt;LI&gt;&lt;BR&gt;&lt;SPAN style="COLOR: blue"&gt;public bool &lt;/SPAN&gt;RunningOnWindows &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; { &lt;BR&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="COLOR: blue"&gt;get &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;{ &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="COLOR: blue"&gt;return&lt;/SPAN&gt;( &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="COLOR: #2b91af"&gt;Environment&lt;/SPAN&gt;.OSVersion.Platform == &lt;SPAN style="COLOR: #2b91af"&gt;PlatformID&lt;/SPAN&gt;.Win32NT || &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="COLOR: #2b91af"&gt;Environment&lt;/SPAN&gt;.OSVersion.Platform == &lt;SPAN style="COLOR: #2b91af"&gt;PlatformID&lt;/SPAN&gt;.Win32S);&amp;nbsp; &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;BR&gt;&lt;A href="http://11011.net/software/vspaste" mce_href="http://11011.net/software/vspaste"&gt;&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;Now we do the Zoom, note that I am not too confident on my Mac KeyCodes; I got this by sniffing on my Mini but I have a regular,ergonomic Microsoft keyboard on&amp;nbsp; that mini so double check with your keyboard just in case. &lt;SPAN style="COLOR: blue"&gt;&lt;BR&gt;&lt;/SPAN&gt;&lt;PRE class=code&gt;&lt;SPAN style="COLOR: blue"&gt;void &lt;/SPAN&gt;DeepZoom_KeyUp(&lt;SPAN style="COLOR: blue"&gt;object &lt;/SPAN&gt;sender, &lt;SPAN style="COLOR: #2b91af"&gt;KeyEventArgs &lt;/SPAN&gt;e)
{
            
&lt;SPAN style="COLOR: blue"&gt;if &lt;/SPAN&gt;(e.Handled == &lt;SPAN style="COLOR: blue"&gt;true&lt;/SPAN&gt;)
&lt;SPAN style="COLOR: blue"&gt;&lt;FONT color=#333333&gt;   &lt;/FONT&gt;return&lt;/SPAN&gt;;

&lt;SPAN style="COLOR: blue"&gt;if &lt;/SPAN&gt;( ( RunningOnWindows &amp;amp;&amp;amp; ((&lt;SPAN style="COLOR: #2b91af"&gt;Keyboard&lt;/SPAN&gt;.Modifiers &amp;amp; &lt;SPAN style="COLOR: #2b91af"&gt;ModifierKeys&lt;/SPAN&gt;.Control) == &lt;SPAN style="COLOR: #2b91af"&gt;ModifierKeys&lt;/SPAN&gt;.Control) &amp;amp;&amp;amp;
     (e.Key == &lt;SPAN style="COLOR: #2b91af"&gt;Key&lt;/SPAN&gt;.Add || (e.Key == &lt;SPAN style="COLOR: #2b91af"&gt;Key&lt;/SPAN&gt;.Unknown &amp;amp;&amp;amp; e.PlatformKeyCode == 0xBB)))  ||
     ( RunningOnMac &amp;amp;&amp;amp; ((&lt;SPAN style="COLOR: #2b91af"&gt;Keyboard&lt;/SPAN&gt;.Modifiers &amp;amp; &lt;SPAN style="COLOR: #2b91af"&gt;ModifierKeys&lt;/SPAN&gt;.Control) == &lt;SPAN style="COLOR: #2b91af"&gt;ModifierKeys&lt;/SPAN&gt;.Control) &amp;amp;&amp;amp;
     (e.Key == &lt;SPAN style="COLOR: #2b91af"&gt;Key&lt;/SPAN&gt;.Add || (e.Key == &lt;SPAN style="COLOR: #2b91af"&gt;Key&lt;/SPAN&gt;.Unknown &amp;amp;&amp;amp; e.PlatformKeyCode == 0x18 )))
                 
    )
    {
       ZoomIn( _lastMousePosition); 

    }
    &lt;SPAN style="COLOR: blue"&gt;else if &lt;/SPAN&gt;( 
      (RunningOnWindows &amp;amp;&amp;amp; ((&lt;SPAN style="COLOR: #2b91af"&gt;Keyboard&lt;/SPAN&gt;.Modifiers &amp;amp; &lt;SPAN style="COLOR: #2b91af"&gt;ModifierKeys&lt;/SPAN&gt;.Control) == &lt;SPAN style="COLOR: #2b91af"&gt;ModifierKeys&lt;/SPAN&gt;.Control) &amp;amp;&amp;amp;
      (e.Key == &lt;SPAN style="COLOR: #2b91af"&gt;Key&lt;/SPAN&gt;.Add || (e.Key == &lt;SPAN style="COLOR: #2b91af"&gt;Key&lt;/SPAN&gt;.Unknown &amp;amp;&amp;amp; e.PlatformKeyCode == 0xBD)))||
      ( RunningOnMac &amp;amp;&amp;amp; ((&lt;SPAN style="COLOR: #2b91af"&gt;Keyboard&lt;/SPAN&gt;.Modifiers &amp;amp; &lt;SPAN style="COLOR: #2b91af"&gt;ModifierKeys&lt;/SPAN&gt;.Control) == &lt;SPAN style="COLOR: #2b91af"&gt;ModifierKeys&lt;/SPAN&gt;.Control) &amp;amp;&amp;amp;
      (e.Key == &lt;SPAN style="COLOR: #2b91af"&gt;Key&lt;/SPAN&gt;.Add || (e.Key == &lt;SPAN style="COLOR: #2b91af"&gt;Key&lt;/SPAN&gt;.Unknown &amp;amp;&amp;amp; e.PlatformKeyCode == 0x1B )))
     )
   {
      ZoomOut( _lastMousePosition );
   }            
             
   e.Handled = &lt;SPAN style="COLOR: blue"&gt;true&lt;/SPAN&gt;;
 }&lt;/PRE&gt;&lt;A href="http://11011.net/software/vspaste" mce_href="http://11011.net/software/vspaste"&gt;&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;At&amp;nbsp; that point our app would be functionally complete but I want to share a few more findings from my learning so let me share&amp;nbsp; the DebugSpew, it can be handy for you too. &lt;BR&gt;&lt;A href="http://11011.net/software/vspaste" mce_href="http://11011.net/software/vspaste"&gt;&lt;/A&gt;
&lt;OL&gt;
&lt;LI&gt;When I wrote my first deepZoom app, I took the usual approach of databinding to it so I can reverse engineer it and found a few issues; since I am traveling I have not discussed them w/ DeepZoom folks in depth for now take these as “gotchas in beta1” and will try to get some one from DeepZoom team to confirm if these are ‘final’ behaviors (feel free to leave feedback here or at the expression blog) letting them know your preferences. 
&lt;UL&gt;
&lt;LI&gt;Databinding to MultiScaleImage was a bit flaky.&amp;nbsp;&amp;nbsp; ViewportWidth and ViewportOrigin did not fire notifications for me.&amp;nbsp; The explanation I have seen is that&amp;nbsp; because DeepZoom animates with springs, binding to these properties was not recommended.&amp;nbsp; These values will change every frame during a transition.&amp;nbsp;&amp;nbsp; The recommended workaround was to subscribe to the MotionFinished event.&amp;nbsp; This fires at the end of a transition, so gives me a nice way to pull the value.&amp;nbsp; In my case (for debug/learning deepZoom), the workaround&amp;nbsp; was very acceptable so I implemented it. &lt;BR&gt;&lt;BR&gt;// in my loaded event for the page &lt;BR&gt;DeepZoom.MotionFinished += &lt;SPAN style="COLOR: blue"&gt;new&lt;/SPAN&gt;&lt;SPAN style="COLOR: #2b91af"&gt;RoutedEventHandler&lt;/SPAN&gt;(DeepZoom_MotionFinished); &lt;BR&gt;&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;&lt;SPAN style="COLOR: blue"&gt;void &lt;/SPAN&gt;DeepZoom_MotionFinished(&lt;SPAN style="COLOR: blue"&gt;object&lt;/SPAN&gt;sender, &lt;SPAN style="COLOR: #2b91af"&gt;RoutedEventArgs &lt;/SPAN&gt;e) &lt;BR&gt;{ &lt;BR&gt;&lt;SPAN style="COLOR: blue"&gt;&amp;nbsp;&amp;nbsp; if&lt;/SPAN&gt;(DebugSpew.DataContext != &lt;SPAN style="COLOR: blue"&gt;null&lt;/SPAN&gt;) &lt;BR&gt;&amp;nbsp;&amp;nbsp; { &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="COLOR: #2b91af"&gt;MultiScaleImageDummyDataWrapper &lt;/SPAN&gt;dw = DebugSpew.DataContext &lt;SPAN style="COLOR: blue"&gt;as&lt;/SPAN&gt;&lt;SPAN style="COLOR: #2b91af"&gt;MultiScaleImageDummyDataWrapper&lt;/SPAN&gt;; &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="COLOR: blue"&gt;if&lt;/SPAN&gt;(dw != &lt;SPAN style="COLOR: blue"&gt;null&lt;/SPAN&gt;) &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; { &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PullData(&lt;SPAN style="COLOR: blue"&gt;ref&lt;/SPAN&gt;dw, &lt;SPAN style="COLOR: blue"&gt;ref&lt;/SPAN&gt;DeepZoom); &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MouseLogicalPosition = DeepZoom.ElementToLogicalPoint(_lastMousePosition); &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;nbsp; &lt;BR&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;nbsp; &lt;BR&gt;&lt;BR&gt;&amp;nbsp; } &lt;PRE class=code&gt;&lt;SPAN style="COLOR: blue"&gt;void &lt;/SPAN&gt;PullData(&lt;SPAN style="COLOR: blue"&gt;ref &lt;/SPAN&gt;&lt;SPAN style="COLOR: #2b91af"&gt;MultiScaleImageDummyDataWrapper &lt;/SPAN&gt;data, &lt;SPAN style="COLOR: blue"&gt;ref &lt;/SPAN&gt;&lt;SPAN style="COLOR: #2b91af"&gt;MultiScaleImage &lt;/SPAN&gt;msi)
{
            data.ViewportWidth = msi.ViewportWidth;
            data.ViewportOrigin = msi.ViewportOrigin;
            data.AspectRatio = msi.AspectRatio;
            data.UseSprings = msi.UseSprings; 
             
} &lt;/PRE&gt;&lt;/LI&gt;
&lt;LI&gt;Databinding to the other properties (that are not animated per frame) in MultiScaleImage also gave me a bit of trouble [some times the control would not show up]. My advise is to not data bind for now.&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR&gt;&lt;/LI&gt;
&lt;LI&gt;Once I had the databinding worked out, I added a handler to pull data from the MouseMove so I could show coordinates when Mouse is moving, I wanted them in logical and element coordinates, so I did the translation and I added an extra&amp;nbsp; call from MotionFinished to translate the point again as the logical Coordinate changes when the Viewport changes. &lt;BR&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;
&lt;H1&gt;Part 5 – Lessons learned &lt;/H1&gt;
&lt;P&gt;Overall I was quite impressed with DeepZoom. it is pretty cool stuff; I wish I had some cool pictures for a better application, but I did not try since&amp;nbsp; I knew I could not top memorabilia. &lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;
&lt;P&gt;My personal advise:&amp;nbsp; do not databind to DeepZoom for now. Pull to it on Motion Finished. &lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;No keyboard input goes into DeepZoom (since it is a FrameworkElement). In order to have keyboard input you must have a Control that has focus; since keyboard events bubble you can handle Keyboard input at a higher level (e.gl LayoutRoot, just check to see if it has not been handled previously). &lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;On my real app –which can’t be shared as it was a customer’s app –.&amp;nbsp; I ran into an issue when using Collections. My images were showing up in the wrong place.&amp;nbsp; I reported it already and they are investigating –during the shower, where I do my best thinking- I came with the theory that is the resolution independence in WPF ( 96 to 72 DPI conversion).&amp;nbsp; I have not confirmed. &lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;I did not discuss collections in the post, so will try it here. Collections are cool because it gives you access to your Subimages so you can&amp;nbsp; manipulate them.&amp;nbsp; Move them around, scale them, animate position and Opacity.&amp;nbsp;&amp;nbsp; For now, beta1 has only one Collection; I think it would be cool to have multiple collections so you can aggregate.&amp;nbsp; This can kind of be simulated via logic, but would be nice if it was in the control.&amp;nbsp; If you simulate it, the advise I was given is do not simulate it by overlaying two MultiScaleImage controls one on top of the other, there are a few known issues with interactions on overlays (though to be honest I tried it and did not run into issues). &lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;UseSprings= true is pretty cool, but pending how quick you want to do your panning/zooming, turning it off can make your app appear more responsive. I would not turn UseSprings off for a consumer facing app, but I would consider doing it for an internal app.. For example, I am doing a Heatmap with lots of data in it, for analytical purposes. Since it is drill through I am considering it. &lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;When panning, make sure you handle MouseLeave on your control. &lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;Handling mouse wheel is not available out of the box is trivial but Peter Blois has a great solution. Do not&amp;nbsp; write the code to handle wheel. Peter’s code works great so far. Check his blog for updates too, he has a nice abstraction now to the same API. &lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;If you skipped section 3, check it out. Understanding the object model is critical and takes 5 mins. &lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;If you are writing a DeepZoom application, I recommend you use the old instantiation via silverlight.js … Click To Activate will eventually go away in IE, but in the mean time it is pretty annoying for an app that is so visual and so focused on mouse navigation.&amp;nbsp; &lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;If subscribing to MultiScaleImage.OpenImageSucceded make sure you do it from your constructor right after initializeComponent.&amp;nbsp; I tried to do it of&amp;nbsp; UserControl.Loaded and when doing a load on a page with image cached that is too late. &lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;If possible try to ‘hold’ any operations until OpenImageSucceded has fired ( no pans, zooms before that). I saw weird results if I try to access properties on MultiScaleImage before this event; in particular if you access the SubImages collection before ImageOpenSucceded, then I would get an empty collection and when ImageOpenSucceeded was fired, the collection would not be overridden; so advise for collections is don’t touch SubImages before the OpenImageSucceeded fires. &lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;
&lt;H1&gt;Part 6 – Source &lt;/H1&gt;
&lt;P&gt;Is at &lt;A title=http://cid-123ec1ed6c72a14a.skydrive.live.com/self.aspx/Public/DeepZoomSample.zip href="http://cid-123ec1ed6c72a14a.skydrive.live.com/self.aspx/Public/DeepZoomSample.zip" mce_href="http://cid-123ec1ed6c72a14a.skydrive.live.com/self.aspx/Public/DeepZoomSample.zip"&gt;Skydrive&lt;/A&gt;&lt;/P&gt;
&lt;H1&gt;Part 7 – Show me the app. &lt;/H1&gt;
&lt;P&gt;You can see it &lt;A href="http://www.cookingwithxaml.com/meals/deepzoomsample/default.html" mce_href="http://www.cookingwithxaml.com/meals/deepzoomsample/default.html"&gt;here&lt;/A&gt;;&amp;nbsp; it is not visually impressive but I think it shows a bit of what you can do with DeepZoom and most important it is functional code you can quickly refactor and reuse. If I missed a common deepZoom task let me know. &lt;BR&gt;&amp;nbsp; &lt;BR&gt;I added two extra “easter eggs” beyond the bunny and&amp;nbsp; the eggs above in the walk through. &lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;One is for&amp;nbsp; the NCAA basketball team for my college, which won yesterday and made it to the Final Four tournament .&amp;nbsp; (Hint, the four finalists are:&amp;nbsp; Kansas, Memphis, UCLA and North Carolina. &lt;BR&gt;&lt;/LI&gt;
&lt;LI&gt;The other one is a bitmap with dates &amp;amp; locations for my upcoming Europe trip (Germany, Austria)..&amp;nbsp; If you are in the area and available the nights I am in the area, ping me and we can get together to discuss any thing .NET client related (e.g. WPF, Silverlight, and ASPX). &lt;/LI&gt;&lt;/OL&gt;
&lt;H1&gt;Part 8 -- Thanks&lt;/H1&gt;
&lt;P&gt;Thanks to &lt;A href="http://systim.spaces.live.com/" mce_href="http://systim.spaces.live.com/"&gt;Tim Aidlin&lt;/A&gt; who chose the colors and gave me cooler icons for the map; I butchered them a bit when I turned them into controls so don’t hold it against him, he is a gifted designer –you can see his real work on the MIX website and any thing else MIX08 branded. &lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8347451" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/jaimer/archive/tags/expression/default.aspx">expression</category><category domain="http://blogs.msdn.com/jaimer/archive/tags/silverlight/default.aspx">silverlight</category><category domain="http://blogs.msdn.com/jaimer/archive/tags/deepzoom/default.aspx">deepzoom</category></item><item><title>Expression Media Encoder video player template debug code posted...</title><link>http://blogs.msdn.com/jaimer/archive/2007/12/17/expression-media-encoder-video-player-template-debug-code-posted.aspx</link><pubDate>Tue, 18 Dec 2007 04:10:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6793550</guid><dc:creator>jaimer</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/jaimer/comments/6793550.aspx</comments><wfw:commentRss>http://blogs.msdn.com/jaimer/commentrss.aspx?PostID=6793550</wfw:commentRss><description>&lt;P&gt;Creating a Silverlight 1.0 video player using Expression encoder is incredibly easy ( 3 clicks and done).. Debugging it or tweaking it was not as easy... Until now.. &lt;/P&gt;
&lt;P&gt;Jim Thill posted the &lt;A class="" href="http://www.microsoft.com/expression/kc/resources.aspx?product=encoder&amp;amp;type=all" mce_href="http://www.microsoft.com/expression/kc/resources.aspx?product=encoder&amp;amp;type=all"&gt;debug ( read:uncrunched, unoptimized )&amp;nbsp;version of the media encoder templates&lt;/A&gt;.. so now you can read and tweak the code..&amp;nbsp; It also comes with a document on how to document the player skins.. &lt;/P&gt;
&lt;P&gt;The template &amp;amp; docs are &lt;A class="" href="http://www.microsoft.com/expression/kc/resources.aspx?product=encoder&amp;amp;type=all" mce_href="http://www.microsoft.com/expression/kc/resources.aspx?product=encoder&amp;amp;type=all"&gt;here&lt;/A&gt;. Enjoy! &lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=6793550" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/jaimer/archive/tags/expression/default.aspx">expression</category><category domain="http://blogs.msdn.com/jaimer/archive/tags/silverlight/default.aspx">silverlight</category></item><item><title>Lotsa tools goodies released recently...</title><link>http://blogs.msdn.com/jaimer/archive/2007/12/11/lotsa-tools-goodies-released-recently.aspx</link><pubDate>Wed, 12 Dec 2007 09:15:42 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6742987</guid><dc:creator>jaimer</dc:creator><slash:comments>2</slash:comments><comments>http://blogs.msdn.com/jaimer/comments/6742987.aspx</comments><wfw:commentRss>http://blogs.msdn.com/jaimer/commentrss.aspx?PostID=6742987</wfw:commentRss><description>&lt;p&gt;Lots of tools released recently..&amp;nbsp; here are my lessons learned after not reading the manual :( &lt;br&gt;&lt;/p&gt; &lt;ul&gt; &lt;li&gt;&lt;em&gt;&lt;strong&gt;Expression &lt;/strong&gt;&lt;a href="http://www.microsoft.com/expression/products/download.aspx?key=blend2preview" target="_blank"&gt;&lt;strong&gt;Blend 2.0&amp;nbsp; December CTP&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt; &lt;/strong&gt;was released last week&lt;/em&gt;..&amp;nbsp;&amp;nbsp;&amp;nbsp; I posted on Blend 2.0 before because the last CTP was full of new great features..&amp;nbsp;&amp;nbsp; &lt;br&gt;As far as I have seen from this 2.0 December CTP the big new feature is support for Visual Studio 2008 RTM {as well as a few bug minor fixes} ...&amp;nbsp;&amp;nbsp; &lt;br&gt;The one thing to note is that&amp;nbsp; Blend 2 December Preview requires the .NET Framework 3.5 and creates solutions for VS 2008...&amp;nbsp;&amp;nbsp;&amp;nbsp; [not for VS2005] ..&amp;nbsp; &amp;nbsp;&lt;/li&gt;&lt;/ul&gt; &lt;blockquote&gt; &lt;p&gt;A friend asked me if I would recommend installing 3.5 Framework on his box and Blend 2 (so he can&amp;nbsp; build prototypes using Blend 2 and then cut &amp;amp; paste to his Blend 1.0 projects)?&amp;nbsp;&amp;nbsp; I have not tried running it side-by-side&amp;nbsp;and I explained to him that there is implications of installing 3.5 on his box, this effectively upgrades your 3.0 framework so if you need to stick with a 3.0 framework for testing or debugging of existing apps -which was his case- I recommend using Blend2 on a VPC or a secondary box ... he is now happy getting the best of both worlds that way. &lt;/p&gt;&lt;/blockquote&gt; &lt;ul&gt; &lt;li&gt;For those people that&amp;nbsp;are developing .NET 3.0 &amp;nbsp;applications, &lt;em&gt;&lt;strong&gt;&lt;a href="http://blogs.msdn.com/expression/archive/2007/11/30/expression-blend-service-pack-1-released.aspx" target="_blank"&gt;Expression Blend 1.0 SP1&lt;/a&gt; &lt;/strong&gt;was released last week too..&amp;nbsp; &lt;br&gt;&lt;/em&gt;Unfortunately you don't see all the Blend 2 goodness in the Service pack. From the release notes, it seem the big &lt;a href="http://support.microsoft.com/kb/944809/en-us" target="_blank"&gt;feature&lt;/a&gt; is support for VS 2008 as well as bug fixes..&amp;nbsp; The big difference here is that Blend 1.0 SP1 does open VS 2008 and VS 2005 projects...&amp;nbsp;&amp;nbsp; &lt;br&gt; &lt;li&gt;Another 'tools' update released last week was the &lt;strong&gt;&lt;a href="http://asp.net/downloads/3.5-extensions/" target="_blank"&gt;ASP .NET 3.5 Extensions Preview&lt;/a&gt;..&amp;nbsp; &lt;/strong&gt;&lt;a href="http://weblogs.asp.net/scottgu/" target="_blank"&gt;ScottGu&lt;/a&gt; has the &lt;a href="http://weblogs.asp.net/scottgu/archive/2007/12/09/asp-net-3-5-extensions-ctp-preview-released.aspx" target="_blank"&gt;details on the extensions&lt;/a&gt;;&amp;nbsp; though there is lots of goodies, to me the most exciting feature is the ASP .NET MVC&amp;nbsp; implementation [which you can learn about via Scott's blog again] ..&amp;nbsp;&amp;nbsp; &lt;br&gt;The one thing to add [to my surprise] is that despite the similar name, the extensions are different from &lt;a href="http://quickstarts.asp.net/futures/" target="_blank"&gt;ASP .NET futures&lt;/a&gt;, so don't download it to get updates to the &lt;a href="http://silverlight.net/QuickStarts/Other/ProgramDlr.aspx" target="_blank"&gt;Managed JScript&lt;/a&gt;&amp;nbsp; my guess is that updates to managed JScript will come when Microsoft releases the CTP for Silverlight 2.0. .. &lt;br&gt; &lt;li&gt;A belated note on &lt;em&gt;&lt;strong&gt;&lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=937ADF32-0FEA-4BB7-B727-CBFBDF3FE032&amp;amp;displaylang=en" target="_blank"&gt;Expression Design SP1&lt;/a&gt;, &lt;/strong&gt;which was released last month&lt;/em&gt;...&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br&gt;The complete &lt;a href="http://support.microsoft.com/kb/942686" target="_blank"&gt;release notes are here&lt;/a&gt;; and Joanna has a good description of the new features at the &lt;a href="http://blogs.msdn.com/expression/archive/2007/10/17/expression-design-service-pack-1-is-now-available.aspx" target="_blank"&gt;expression team's blog&lt;/a&gt;; her post is a must read because some of the features she lists were missing from the&amp;nbsp;release notes but are very important ( like gradient mid-points can now be exported)..&amp;nbsp; &lt;br&gt;&lt;/li&gt;&lt;/ul&gt; &lt;p&gt;That is it ... my machines are up-to-date on tools for now ...&amp;nbsp;&amp;nbsp; I hope&amp;nbsp; this helps u decide what to download .. &lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=6742987" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/jaimer/archive/tags/Windows+Presentation+Foundation/default.aspx">Windows Presentation Foundation</category><category domain="http://blogs.msdn.com/jaimer/archive/tags/expression/default.aspx">expression</category><category domain="http://blogs.msdn.com/jaimer/archive/tags/silverlight/default.aspx">silverlight</category><category domain="http://blogs.msdn.com/jaimer/archive/tags/vs2008/default.aspx">vs2008</category></item><item><title>Cider Part2: building a WPF app using Cider and Expression Blend..</title><link>http://blogs.msdn.com/jaimer/archive/2007/08/19/cider-part2-building-a-wpf-app-using-cider-and-expression-blend.aspx</link><pubDate>Mon, 20 Aug 2007 09:25:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4411690</guid><dc:creator>jaimer</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/jaimer/comments/4411690.aspx</comments><wfw:commentRss>http://blogs.msdn.com/jaimer/commentrss.aspx?PostID=4411690</wfw:commentRss><description>&lt;P&gt;In my earlier post I walked through my favorite Cider beta2 features.&amp;nbsp; &lt;BR&gt;&lt;BR&gt;You might have noticed that I focused on 'developer' features like laying out controls, wiring up events, and XAML editing. I skipped other 'designer' tasks (like styling, templating, animation, etc.) that you would need to create a stunning app .&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR&gt;The reason I skipped them is because the features required for these tasks&amp;nbsp; are not in Cider&amp;nbsp;v1; &amp;nbsp;you can definitely implement all of these tasks by just typing XAML in the&amp;nbsp;XAML&amp;nbsp;editor, but that is not the highly productive RAD approach you get out of Expression Blend,&amp;nbsp; so my reccomendation is that you use Blend for this.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;Here is what I consider the sweet spots for each tool (based on my&amp;nbsp;experience, this is not the official opinions from either team ): &lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Cider:&amp;nbsp;&amp;nbsp; Layout,&amp;nbsp; Hooking Events and code-behind, XAML editing,&amp;nbsp; Debugging,&amp;nbsp; Deployment, version control integration from IDE.&lt;BR&gt;&amp;nbsp; 
&lt;LI&gt;Expression Blend: Layout, templating ( both controls and data ),&amp;nbsp; Animations, Triggers, basic 3D Viewport manipulation ( camera, rotations, etc.), basic vector/path drawing (arguably better done in Expression Graphic design), and wysiwyg transformations.. &lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;So, to build an amazing wpf app with out compromising productivity and maximizing ease of you, you will have to use both tools..&amp;nbsp; If your immediate reaction was "argh, two tools!"&amp;nbsp;I&amp;nbsp; reacted that way at first, but having done it for last few weeks, I got a little bit less irritated...&amp;nbsp;&amp;nbsp;here are some of my personal takes/experiences/predictions &amp;nbsp;around this subject: &lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;There is no hidden agenda behind current state;&amp;nbsp; this is simply the result of "only so much time, must prioritize features " .. rest assured all our teams are looking to provide best integration and as many features as possible across each tool... so you should expect the 'sweet spots' for each tool will grow and the tools willl overlap more and more in future releases.&amp;nbsp;&amp;nbsp; 
&lt;LI&gt;On more overlap, we should acknowledge that it is nice and definitely a goal to keep the tools optimized for roles; VS2008 will continue to optimize for developers, and Blend will continue to optimize&amp;nbsp;and target designers.&amp;nbsp;&amp;nbsp; 
&lt;LI&gt;&amp;nbsp;Another thing to highlight is that the teams have done all the leg work for seamless integration: they share projects, they share solutions, they share xaml files,&amp;nbsp; they share as much design-time extensibility as possible given they shipped at different times, etc. 
&lt;LI&gt;A non-technical argument is cost; this is out of my realm so no roadmap there but I do know that: &lt;/LI&gt;
&lt;UL&gt;
&lt;LI&gt;Expression Blend is included in MSDN so a large number of developers will get it for free ( if you are a developer who does not subscribe to MSDN you should look into that, it can likely save you $$).&amp;nbsp;&amp;nbsp; 
&lt;LI&gt;If you are a designer, then you should know there are free versions of Visual Studio (called Express) that you can use to complement Blend ( e.g. for debugging). &lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;
&lt;P&gt;I am clearly not in marketing so likely a better way to show you the seamless integration between the tools is to walk through a brief screencast as I did in part 1.&amp;nbsp; &lt;A class="" href="http://channel9.msdn.com/screencasts/ciderb2_devdes.wmv" mce_href="http://channel9.msdn.com/screencasts/ciderb2_devdes.wmv"&gt;Here is a 10 min screencast showing (briefly, not in full) how you can change a few templates and triggers in &amp;nbsp;the 'bare browser' we created in part 1. &lt;/A&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=4411690" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/jaimer/archive/tags/expression/default.aspx">expression</category><category domain="http://blogs.msdn.com/jaimer/archive/tags/vs2008/default.aspx">vs2008</category><category domain="http://blogs.msdn.com/jaimer/archive/tags/cider+designer/default.aspx">cider designer</category></item><item><title>Expression Design tips...</title><link>http://blogs.msdn.com/jaimer/archive/2007/06/26/expression-design-tips.aspx</link><pubDate>Wed, 27 Jun 2007 06:34:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3559074</guid><dc:creator>jaimer</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/jaimer/comments/3559074.aspx</comments><wfw:commentRss>http://blogs.msdn.com/jaimer/commentrss.aspx?PostID=3559074</wfw:commentRss><description>&lt;P&gt;Expression Design tips I learned while at the&amp;nbsp; &lt;A class="" href="https://www.regonline.com/EventInfo.asp?EventId=130030" mce_href="https://www.regonline.com/EventInfo.asp?EventId=130030"&gt;Express Yourself contest&lt;/A&gt; in San Fran last week.. : &lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;The list of features that design does not support when importing Adobe illustrator files is in the readme ... It is &lt;A class="" href="http://www.microsoft.com/expression/products/readme.aspx?key=design#ai" mce_href="http://www.microsoft.com/expression/products/readme.aspx?key=design#ai"&gt;here&lt;/A&gt;..&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;To use the Clipboard ( Cut&amp;nbsp; &amp;amp; Paste ) between Design with Expression Blend, you should set the options under Edit -&amp;gt; Options -&amp;gt; Clipboard (XAML)...&amp;nbsp;&amp;nbsp; here you get options similar to what you do when selecting File-&amp;gt; Export XAML&amp;nbsp; ... The default settings are for WPF... so if doing silverlight you need to change these... &lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;Along with those two tips there a few common issues that you will have to workaround ...&amp;nbsp; [the design team is on top of these, but likely needs to wait for a Service pack or similar] &lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Design works in WPF device independent units 1/96 of an inch.. It does all conversions for you .. So highly recommended you work at 96 DPI ..&amp;nbsp; If you work at say 72 DPI you are going to see your export to be 4/3 the size you expected...&amp;nbsp;&amp;nbsp; &lt;/LI&gt;
&lt;LI&gt;Design puts an &amp;lt;?xml &amp;gt;&amp;nbsp; directive on top of their files..&amp;nbsp; Though this is still valid XML ...&amp;nbsp; CreateFromXaml ( ) does not parse it ...&amp;nbsp;&amp;nbsp; [this applies to using downloaded object and creating from XAML in a file..&amp;nbsp; I believe it works fine if you use the Xaml files as a Source.. &lt;/LI&gt;
&lt;LI&gt;Design automatically generates names ...&amp;nbsp; (Group1, Group2,&amp;nbsp; Path1, etc. ) which can be an issue for Silverlight since it likes Unique names...&amp;nbsp;&amp;nbsp; [this is only issue if loading two files into single object ... a simple&amp;nbsp; replace of x:Name="&amp;nbsp; to x:Name="prefix&amp;nbsp;&amp;nbsp; does the trick .. .&lt;/LI&gt;&lt;/OL&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS -- The contest results were quite impressive... stay tuned at the VisitMix.com blog where I think they will show the videos of the competition .. &lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=3559074" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/jaimer/archive/tags/expression/default.aspx">expression</category><category domain="http://blogs.msdn.com/jaimer/archive/tags/blend/default.aspx">blend</category><category domain="http://blogs.msdn.com/jaimer/archive/tags/silverlight/default.aspx">silverlight</category></item></channel></rss>