Skip to main content
Home Forums General Silverlight Getting Started How did I manage Scroll Bar
4 replies. Latest Post by nirav123 on September 16, 2008.
(1)
nirav123
Member
6 points
5 Posts
09-05-2008 12:40 AM |
Hello Everyone there
I had developed a SL2B2 application.I used scrollbar of SL and not the default one.It is working fine But my problem is I am not able to scroll the page through mouse(scrollwheel).Also at one place there is a form to be submitted,which is having enough height,after submit button(at the end of the page) is clicked,forms visibility is set to collapsed and other stackpanel is set to visible which is not having much height,so when button is clicked,I want to goto the top of the page by default how could I do this.
ccoombs
Contributor
5122 points
755 Posts
09-05-2008 9:46 AM |
I don't think mouse wheel scrolling isn't supported yet in beta. I imagine this is something we'll see in the official release.
To move to the top of your scrollable area programmatically, you'll want to use:
nameOfScrollViewer.ScrollToVerticalOffset(0)
amyo
3592 points
486 Posts
09-07-2008 2:08 PM |
I also found mouse wheel scrolling isn't working in beta.
Ccoombs reply is absolutely the answer of this post.
K2P2
Participant
1026 points
336 Posts
09-07-2008 5:28 PM |
I found this while working on some Deep Zoom stuff. It works there. I haven't time to put together an example so I don't know if it will help you in what you are trying to do. These event handlers are catching the mouse wheel event though, in a UserControl that I quickly threw together. (But I dought the logic in the handler is of much use to you.)
09-16-2008 6:39 AM |
Thanks for help But I had not been able to check it out due lots of other work I am really sorry for that.But as soon as I start my SL project I will chk this and get back to you.