Skip to main content

Microsoft Silverlight

Answered Question Is it possible to use animation to make a scroll viewer scroll animation?RSS Feed

(0)

sinosoidal
sinosoidal

Member

Member

664 points

373 Posts

Is it possible to use animation to make a scroll viewer scroll animation?

 Hi,

 I would like to animate the scroll with an animation. Is it possible?

Thx,

Nuno
 

--

Imagining (and touching) the future
http://www.nunosantos.net/
http://www.myspace.com/sinosoidal

SteveWong
SteveWong

Contributor

Contributor

6343 points

1,281 Posts

Re: Is it possible to use animation to make a scroll viewer scroll animation?

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();
        }
    }

Regards,
SteveWong (HongKong)
Please mark post as answer if they help you

Client App Dev

sinosoidal
sinosoidal

Member

Member

664 points

373 Posts

Re: Is it possible to use animation to make a scroll viewer scroll animation?

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?

Thx,

Nuno

--

Imagining (and touching) the future
http://www.nunosantos.net/
http://www.myspace.com/sinosoidal

SteveWong
SteveWong

Contributor

Contributor

6343 points

1,281 Posts

Answered Question

Re: Re: Is it possible to use animation to make a scroll viewer scroll animation?

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.

Regards,
SteveWong (HongKong)
Please mark post as answer if they help you

Client App Dev
  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities