private void UpdateZoomMode(IZoomableScrollView zoomableScrollView) { if (zoomableScrollView.IsZoomEnabled) { } else { } }
private void UpdateZoomMode(IZoomableScrollView zoomableScrollView) { if (zoomableScrollView.IsZoomEnabled) { Control.ZoomMode = ZoomMode.Enabled; ScrollViewer.SetHorizontalScrollMode(Control, Windows.UI.Xaml.Controls.ScrollMode.Auto); ScrollViewer.SetVerticalScrollMode(Control, Windows.UI.Xaml.Controls.ScrollMode.Auto); Control.VerticalScrollBarVisibility = Windows.UI.Xaml.Controls.ScrollBarVisibility.Auto; Control.HorizontalScrollBarVisibility = Windows.UI.Xaml.Controls.ScrollBarVisibility.Auto; Control.MinZoomFactor = 0.1f; Control.MaxZoomFactor = 20.0f; } else { Control.ZoomMode = ZoomMode.Disabled; } }