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

MVP Reconnect - say hi on Twitter

Microsoft MCSD

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

Latest Posts