<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Zoom in and out using the Mouse wheel in Silverlight</title>
	<atom:link href="http://www.silverlightbuzz.com/2009/05/19/zoom-in-and-out-using-the-mouse-wheel-in-silverlight/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.silverlightbuzz.com/2009/05/19/zoom-in-and-out-using-the-mouse-wheel-in-silverlight/</link>
	<description>Gavin Wignall Blogs about Silverlight tutorials and examples</description>
	<lastBuildDate>Mon, 08 Mar 2010 08:41:47 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Mike Simon</title>
		<link>http://www.silverlightbuzz.com/2009/05/19/zoom-in-and-out-using-the-mouse-wheel-in-silverlight/comment-page-1/#comment-1179</link>
		<dc:creator>Mike Simon</dc:creator>
		<pubDate>Thu, 03 Sep 2009 03:02:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.silverlightbuzz.com/?p=203#comment-1179</guid>
		<description>Another bug is that it only seems to work when the ScaleX and ScaleY are &gt;= 1  .  Massive jumping occurs if your Canvas is already scaled beneath 1 the start.  

If I come up with a fix, I&#039;ll post here.  Thanks for posting this.  It&#039;s way better than what I was getting when I was trying to calculate the margin based on the scale and offset the position with that.</description>
		<content:encoded><![CDATA[<p>Another bug is that it only seems to work when the ScaleX and ScaleY are &gt;= 1  .  Massive jumping occurs if your Canvas is already scaled beneath 1 the start.  </p>
<p>If I come up with a fix, I&#8217;ll post here.  Thanks for posting this.  It&#8217;s way better than what I was getting when I was trying to calculate the margin based on the scale and offset the position with that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Drew Vance</title>
		<link>http://www.silverlightbuzz.com/2009/05/19/zoom-in-and-out-using-the-mouse-wheel-in-silverlight/comment-page-1/#comment-290</link>
		<dc:creator>Drew Vance</dc:creator>
		<pubDate>Thu, 16 Jul 2009 21:55:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.silverlightbuzz.com/?p=203#comment-290</guid>
		<description>There&#039;s a bug: If you are zoomed in on one point, and move your mouse to a different point to zoom,  zoomArea &quot;jumps&quot;.

Does anyone know a fix for this?</description>
		<content:encoded><![CDATA[<p>There&#8217;s a bug: If you are zoomed in on one point, and move your mouse to a different point to zoom,  zoomArea &#8220;jumps&#8221;.</p>
<p>Does anyone know a fix for this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gavin Wignall</title>
		<link>http://www.silverlightbuzz.com/2009/05/19/zoom-in-and-out-using-the-mouse-wheel-in-silverlight/comment-page-1/#comment-259</link>
		<dc:creator>Gavin Wignall</dc:creator>
		<pubDate>Thu, 09 Jul 2009 06:39:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.silverlightbuzz.com/?p=203#comment-259</guid>
		<description>Thanks Scotto that&#039;s great, I&#039;ll get the example source updated as soon as I get a chance!</description>
		<content:encoded><![CDATA[<p>Thanks Scotto that&#8217;s great, I&#8217;ll get the example source updated as soon as I get a chance!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott Rogers</title>
		<link>http://www.silverlightbuzz.com/2009/05/19/zoom-in-and-out-using-the-mouse-wheel-in-silverlight/comment-page-1/#comment-258</link>
		<dc:creator>Scott Rogers</dc:creator>
		<pubDate>Thu, 09 Jul 2009 06:08:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.silverlightbuzz.com/?p=203#comment-258</guid>
		<description>Thanks for your helpful example. 

As I needed to get it working in Google Chrome, I found that Google Chrome 2.0.172.33 has both the properties, &quot;detail&quot;, which returns 0.0 and &quot;wheelDelta&quot; which returns a valid integer value.

I modified the code snippet as below to get the example working in Google Chrome.

// IE, Google Chrome and Opera
if (e.GetProperty(”wheelDelta”) != null)
{
mouseDelta = ((double)e.GetProperty(”wheelDelta”));
}
// Mozilla and Safari
else if (e.GetProperty(”detail”) != null)
{
mouseDelta = ((double)e.GetProperty(”detail”));
}
mouseDelta = Math.Sign(mouseDelta);

Thanks again,
Scotto</description>
		<content:encoded><![CDATA[<p>Thanks for your helpful example. </p>
<p>As I needed to get it working in Google Chrome, I found that Google Chrome 2.0.172.33 has both the properties, &#8220;detail&#8221;, which returns 0.0 and &#8220;wheelDelta&#8221; which returns a valid integer value.</p>
<p>I modified the code snippet as below to get the example working in Google Chrome.</p>
<p>// IE, Google Chrome and Opera<br />
if (e.GetProperty(”wheelDelta”) != null)<br />
{<br />
mouseDelta = ((double)e.GetProperty(”wheelDelta”));<br />
}<br />
// Mozilla and Safari<br />
else if (e.GetProperty(”detail”) != null)<br />
{<br />
mouseDelta = ((double)e.GetProperty(”detail”));<br />
}<br />
mouseDelta = Math.Sign(mouseDelta);</p>
<p>Thanks again,<br />
Scotto</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Links da Semana (25-29) - Gonçalo Chaves - XAML PT</title>
		<link>http://www.silverlightbuzz.com/2009/05/19/zoom-in-and-out-using-the-mouse-wheel-in-silverlight/comment-page-1/#comment-128</link>
		<dc:creator>Links da Semana (25-29) - Gonçalo Chaves - XAML PT</dc:creator>
		<pubDate>Fri, 29 May 2009 13:03:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.silverlightbuzz.com/?p=203#comment-128</guid>
		<description>[...] Trabalhar com Zoom em Silverlight -&#160; Mais um bom exemplo, de como podemos trabalhar com as funções de zoom numa aplicação silverlight. Como apanhar os eventos do rato, bem como a famosa “rodinha”, para o Zoom. [...]</description>
		<content:encoded><![CDATA[<p>[...] Trabalhar com Zoom em Silverlight -&#160; Mais um bom exemplo, de como podemos trabalhar com as funções de zoom numa aplicação silverlight. Como apanhar os eventos do rato, bem como a famosa “rodinha”, para o Zoom. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Colin E.</title>
		<link>http://www.silverlightbuzz.com/2009/05/19/zoom-in-and-out-using-the-mouse-wheel-in-silverlight/comment-page-1/#comment-115</link>
		<dc:creator>Colin E.</dc:creator>
		<pubDate>Wed, 20 May 2009 10:18:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.silverlightbuzz.com/?p=203#comment-115</guid>
		<description>This looks good, however unfortunately when I use the mouse-wheel is not only zooms the silverlight application but also performs a vertical scroll of my browser window! (Firefox 3.0.10)

Regards, Colin E.</description>
		<content:encoded><![CDATA[<p>This looks good, however unfortunately when I use the mouse-wheel is not only zooms the silverlight application but also performs a vertical scroll of my browser window! (Firefox 3.0.10)</p>
<p>Regards, Colin E.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
