private void Scroller_ZoomCompleted(Scroller sender, ZoomCompletedEventArgs args) { ScrollerViewChangeResult result = ScrollerTestHooks.GetZoomCompletedResult(args); this.fullLogs.Add(sender.Name + " ZoomCompleted ZoomFactorChangeId=" + args.ZoomInfo.ZoomFactorChangeId + ", Result=" + result); if (this.scroller52ZoomFactorChangeId == args.ZoomInfo.ZoomFactorChangeId) { this.txtResetStatus.Text = "Views reset"; } }
private void Scroller_ZoomCompleted(Scroller sender, ZoomCompletedEventArgs args) { string senderId = "." + sender.Name; FrameworkElement parent = VisualTreeHelper.GetParent(sender) as FrameworkElement; if (parent != null) { senderId = parent.Name + senderId; } ScrollerViewChangeResult result = ScrollerTestHooks.GetZoomCompletedResult(args); this.fullLogs.Add(senderId + " ZoomCompleted. ZoomFactorChangeId=" + args.ZoomInfo.ZoomFactorChangeId + ", Result=" + result); if (args.ZoomInfo.ZoomFactorChangeId == scrollViewer52ZoomFactorChangeId) { this.txtResetStatus.Text = "Views reset"; scrollViewer52ZoomFactorChangeId = -1; } }