An attempt to make a scroll reduction in a Windows Store app caused by a double-click event.
this is the code that was supposed to happen
private void MainPhotoDisplay_DoubleTapped(object sender, DoubleTappedRoutedEventArgs e)
{
MainPhotoDisplayscrollViewer.ChangeView(null, null, 1.0F,true);
}
but if I zoom in, in the simulator and then double click, nothing will happen. the event fires, and the method fires, but nothing happens, the view remains in an enlarged state.
here is the documentation for it: http://msdn.microsoft.com/en-us/library/windows/apps/dn252762.aspx
this deprecated method:
MainPhotoDisplayscrollViewer.ZoomToFactor(1);
It works just fine, but unfortunately it does not have animation, which creates a bad user experience. And in fact, I do not want this.
any ideas as to why nothing is happening?