Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to disable scrollviewer automatic moving of scrollviewer in XAML Phone Application

How can I make my scrollviewer not to move automatically when I move and release it with mouse

I know it is the normal behavior, I need to make it keep its current horizontal offset when I release mouse.

like image 520
user1797463 Avatar asked Nov 03 '22 12:11

user1797463


1 Answers

You need to make IsScrollInertiaEnabled false.

scrollviewer.IsScrollInertiaEnabled = false;

Sources: IsScrollInertiaEnabled , Inertia Mechanics .

like image 181
User42 Avatar answered Nov 08 '22 10:11

User42