• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 700
  • Last Modified:

Canvas panning in Silverlight?

Hello Experts,

I have a canvas which is larger than screen. Thats how it is always hence I have set scroll bars to it. This canvas is kind of a layout of an office floor where each workstation is denoted by an icon. User is provided an option to swap the workstations by doing drag & drop of the icons from X to Y position.

Lets say the user wanted to move a workstation from top-left to bottom-right of the cavans. He has to drag the workstation all the way down, which requires the canvas to do autoscrolling towards bottom-right when the user is engaged in dragging the workstation icon. I am a newbie, and having trouble in implementing autoscrolling for the canvas. Have you come across such situations? How did you solve it? If possible please point me some samples.

Thank you!
0
redflair
Asked:
redflair
  • 3
  • 3
1 Solution
 
peterdunganCommented:
This provides functionality you describe. It is in C# so if you are using VB you won't be able to use it directly, but you should still be able to see how to do it. Give feedback please, and rate it if it solves your problem

http://autoscroller.codeplex.com/
0
 
redflairAuthor Commented:
Thank you, I will try it and keep you posted!
0
 
peterdunganCommented:
Made some changes to the project to improve the drag mode. Also added drag and drop feature to the example to demonstrate.
0
Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

 
peterdunganCommented:
Did this work ok for you?
0
 
redflairAuthor Commented:
Yes, It did work. Thank you very much!
0
 
redflairAuthor Commented:
Thank you!
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now