<?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>Scrolling so smooth like the butter on a muffin [How to: Animate the Horizontal/VerticalOffset properties of a ScrollViewer]</title><link>http://blogs.msdn.com/b/delay/archive/2009/08/04/scrolling-so-smooth-like-the-butter-on-a-muffin-how-to-animate-the-horizontal-verticaloffset-properties-of-a-scrollviewer.aspx</link><description>Recently, I got email from two different people with the same question: How do I animate the HorizontalOffset / VerticalOffset properties of a Silverlight/WPF ScrollViewer control? Just in case you've never tried this yourself, I'll tell you that it's</description><dc:language>en</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Scrolling so smooth like the butter on a muffin [How to: Animate the Horizontal/VerticalOffset properties of a ScrollViewer]</title><link>http://blogs.msdn.com/b/delay/archive/2009/08/04/scrolling-so-smooth-like-the-butter-on-a-muffin-how-to-animate-the-horizontal-verticaloffset-properties-of-a-scrollviewer.aspx#10305822</link><pubDate>Wed, 16 May 2012 13:33:13 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10305822</guid><dc:creator>Balint Farkas</dc:creator><description>&lt;p&gt;Thanks man, this just saved me hours and hours in a SL project.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10305822" width="1" height="1"&gt;</description></item><item><title>re: Scrolling so smooth like the butter on a muffin [How to: Animate the Horizontal/VerticalOffset properties of a ScrollViewer]</title><link>http://blogs.msdn.com/b/delay/archive/2009/08/04/scrolling-so-smooth-like-the-butter-on-a-muffin-how-to-animate-the-horizontal-verticaloffset-properties-of-a-scrollviewer.aspx#10195402</link><pubDate>Sat, 13 Aug 2011 05:15:02 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10195402</guid><dc:creator>David Anson</dc:creator><description>&lt;p&gt;WantsMoreSettlesForLess,&lt;/p&gt;
&lt;p&gt;The code you show is a DependencyProperty getter, not a constructor. It will return null until a value is set - which the example XAML does via a Binding/ElementName, but which could be done in code by setting the property.&lt;/p&gt;
&lt;p&gt;Hope this helps!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10195402" width="1" height="1"&gt;</description></item><item><title>re: Scrolling so smooth like the butter on a muffin [How to: Animate the Horizontal/VerticalOffset properties of a ScrollViewer]</title><link>http://blogs.msdn.com/b/delay/archive/2009/08/04/scrolling-so-smooth-like-the-butter-on-a-muffin-how-to-animate-the-horizontal-verticaloffset-properties-of-a-scrollviewer.aspx#10195017</link><pubDate>Thu, 11 Aug 2011 21:57:07 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10195017</guid><dc:creator>WantsMoreSettlesForLess</dc:creator><description>&lt;p&gt;If the ScrollViewer was not created in xaml then, when this thing constructs, there is no ScrollViewer.&lt;/p&gt;
&lt;p&gt; &amp;nbsp;public ScrollViewer ScrollViewer {&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; get { return (ScrollViewer)GetValue(ScrollViewerProperty); &lt;/p&gt;
&lt;p&gt;returns null since there is no actual scrollviewer control when this runs. &amp;nbsp;FYI.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10195017" width="1" height="1"&gt;</description></item><item><title>re: Scrolling so smooth like the butter on a muffin [How to: Animate the Horizontal/VerticalOffset properties of a ScrollViewer]</title><link>http://blogs.msdn.com/b/delay/archive/2009/08/04/scrolling-so-smooth-like-the-butter-on-a-muffin-how-to-animate-the-horizontal-verticaloffset-properties-of-a-scrollviewer.aspx#9867644</link><pubDate>Thu, 13 Aug 2009 08:07:13 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9867644</guid><dc:creator>David Anson</dc:creator><description>&lt;p&gt;SharpGIS,&lt;/p&gt;
&lt;p&gt;Great stuff! Loved the post and thanks very much for following up on this! :)&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9867644" width="1" height="1"&gt;</description></item><item><title>re: Scrolling so smooth like the butter on a muffin [How to: Animate the Horizontal/VerticalOffset properties of a ScrollViewer]</title><link>http://blogs.msdn.com/b/delay/archive/2009/08/04/scrolling-so-smooth-like-the-butter-on-a-muffin-how-to-animate-the-horizontal-verticaloffset-properties-of-a-scrollviewer.aspx#9865313</link><pubDate>Wed, 12 Aug 2009 04:32:45 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9865313</guid><dc:creator>Morten Nielsen</dc:creator><description>&lt;p&gt;Inspired by your approach I blogged my ScrollViewer behavior here: &lt;a rel="nofollow" target="_new" href="http://www.sharpgis.net/post/2009/08/11/Silverlight-Behaviors-Triggers-and-Actions.aspx"&gt;http://www.sharpgis.net/post/2009/08/11/Silverlight-Behaviors-Triggers-and-Actions.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I made a few changes to the animation. I only use EaseOut since this gave a better feel to it, and instead of using Grid.Loaded for triggering the storyboard I used the MouseWheel event.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9865313" width="1" height="1"&gt;</description></item><item><title>re: Scrolling so smooth like the butter on a muffin [How to: Animate the Horizontal/VerticalOffset properties of a ScrollViewer]</title><link>http://blogs.msdn.com/b/delay/archive/2009/08/04/scrolling-so-smooth-like-the-butter-on-a-muffin-how-to-animate-the-horizontal-verticaloffset-properties-of-a-scrollviewer.aspx#9864748</link><pubDate>Tue, 11 Aug 2009 21:26:39 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9864748</guid><dc:creator>Morten Nielsen</dc:creator><description>&lt;p&gt;I managed to convert this code to a &amp;quot;real&amp;quot; Blend behavior which cleans up the usage a lot (no need for the ScrollViewerOffsetMediator). I'll try and blog it tonight.&lt;/p&gt;
&lt;p&gt;But basically it now looks like this:&lt;/p&gt;
&lt;p&gt;&amp;lt;ScrollViewer&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;&amp;lt;i:Interaction.Behaviors&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;behaviors:MouseScrollViewer /&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;&amp;lt;/i:Interaction.Behaviors&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;/ScrollViewer&amp;gt;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9864748" width="1" height="1"&gt;</description></item><item><title>re: Scrolling so smooth like the butter on a muffin [How to: Animate the Horizontal/VerticalOffset properties of a ScrollViewer]</title><link>http://blogs.msdn.com/b/delay/archive/2009/08/04/scrolling-so-smooth-like-the-butter-on-a-muffin-how-to-animate-the-horizontal-verticaloffset-properties-of-a-scrollviewer.aspx#9858280</link><pubDate>Wed, 05 Aug 2009 21:07:07 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9858280</guid><dc:creator>David Anson</dc:creator><description>&lt;p&gt;michaudv,&lt;/p&gt;
&lt;p&gt;According to my current understanding of Blend Behaviors, I could not use them to add the writable DependencyProperty that's necessary to get the desired animate-able behavior. If you know otherwise, a pointer to more information would be great!&lt;/p&gt;
&lt;p&gt;Either way, that doesn't mean you can't use this solution with Blend! :) Once you've compiled ScrollViewerOffsetMediator into some assembly in your project, you should be able to drop it onto the XAML design surface just like any other element - and then hook it up via the standard Blend mechanisms, and everything should work just fine. Other than the code for ScrollViewerOffsetMediator, my sample is 100% XAML-based - no code required - so the general process should be pretty Blend-friendly.&lt;/p&gt;
&lt;p&gt;Hope this helps!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9858280" width="1" height="1"&gt;</description></item><item><title>re: Scrolling so smooth like the butter on a muffin [How to: Animate the Horizontal/VerticalOffset properties of a ScrollViewer]</title><link>http://blogs.msdn.com/b/delay/archive/2009/08/04/scrolling-so-smooth-like-the-butter-on-a-muffin-how-to-animate-the-horizontal-verticaloffset-properties-of-a-scrollviewer.aspx#9858030</link><pubDate>Wed, 05 Aug 2009 15:55:28 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9858030</guid><dc:creator>michaudv</dc:creator><description>&lt;p&gt;Why don't you make a behavior of this? this way peoples working in blend can reuse it. Just an idea&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9858030" width="1" height="1"&gt;</description></item></channel></rss>