Skip to main content
Home Forums Silverlight Programming Programming with .NET - General Is it possible to use animation to make a scroll viewer scroll animation?
3 replies. Latest Post by SteveWong on May 25, 2008.
(0)
sinosoidal
Member
664 points
373 Posts
05-24-2008 6:29 PM |
Hi,
I would like to animate the scroll with an animation. Is it possible?
Thx,
Nuno
SteveWong
Contributor
6343 points
1,281 Posts
05-24-2008 9:51 PM |
Let say that is a scrollviewer... actually we have the lineup and linedown method and we can set timer to call that
public partial class Page : UserControl { DispatcherTimer timer = new DispatcherTimer(); public Page() { InitializeComponent(); timer.Interval = TimeSpan.FromMilliseconds(100); timer.Tick += new EventHandler(timer_Tick); timer.Start(); } void timer_Tick(object sender, EventArgs e) { ScrollViewer1.linedown(); } }
05-25-2008 6:06 AM |
So.. i can't use the animation class to make that animation?
I have to use a custom method?
Is it smotth this way? What about accelaration an decellaration?
05-25-2008 7:48 AM |
I guess it cannnot do so coz we dont have a dependency property controlling where the scroller scrolled? Right?
If it does have, we can do so. Coz I didnt spend so much time on Scroller.