Shift
Shift

Reputation: 642

Scrollviewer logical scrolling with physical scrolling animation (touch)

I have a scrollviewer that contains an stackpanel. The stackpanel is filled with usercontrols that I created. I want to use the logical scrolling but with the physical scrolling way of panning to left and right. So when I pan the content to left or right and let go, the content should align to the most visible controls begin position. I am simulating the touch by using input simulator of Microsoft Surface. Any help would be appriciated.

Upvotes: 1

Views: 974

Answers (1)

Vasudevan Kannan
Vasudevan Kannan

Reputation: 951

You will have to implement IScrollInfo interface for any custom scrolling.The following link should be helpful

http://www.switchonthecode.com/tutorials/wpf-tutorial-implementing-iscrollinfo

Upvotes: 1

Related Questions