Why is my zoomable ScrollViewer snapping the image to the left?

FlipView is an interesting control that can be easily used for scenarios such as image galleries. Other than flipping through a bunch of images, users normally expect to be able to zoom in and out, and we all now that zooming in and out is easiest to implement with a ScrollViewer with enabled ZoomMode property. However, the default behavior of the ScrollViewer is a bit unusual. Let's create s simple repro case. Let's define a very simple model class: public class WindowsWallpaper { public string ImageUri { get; set; } } and a very simple HomePageViewModel class: public class HomePageViewModel : INotifyPropertyChanged { public HomePageViewModel() { this.…

Read More

Scrolling GridView by placing mouse on edge

The start screen on Windows 8 has an interesting feature - it scrolls if you move your mouse to left or right edge, without the need for scrolling using the mouse wheel. I pretty much never use it because the scrolling is rather slow, and I usually know where I want to go so I can scroll faster, but for reading and exploring purposes, slower scrolling can come in handy. How to accomplish it using the GridView control to make a pointer scrolling GridView? Disclaimer: this is something I played with and decided to share with everyone on my personal…

Read More

MVP Reconnect - say hi on Twitter

Microsoft MCSD

profile for igrali at Stack Overflow, Q&A for professional and enthusiast programmers

Latest Posts