예제 #1
0
        private void ScrollPresenter_ZoomCompleted(ScrollPresenter sender, ScrollingZoomCompletedEventArgs args)
        {
            ScrollPresenterViewChangeResult result = ScrollPresenterTestHooks.GetZoomCompletedResult(args);

            this.fullLogs.Add(sender.Name + " ZoomCompleted ZoomFactorChangeId=" + args.ZoomInfo.ZoomFactorChangeId + ", Result=" + result);

            if (this.scrollPresenter52ZoomFactorChangeId == args.ZoomInfo.ZoomFactorChangeId)
            {
                this.txtResetStatus.Text = "Views reset";
            }
        }
        private void ScrollPresenter_ZoomCompleted(ScrollPresenter sender, ScrollingZoomCompletedEventArgs args)
        {
            string           senderId = "." + sender.Name;
            FrameworkElement parent   = VisualTreeHelper.GetParent(sender) as FrameworkElement;

            if (parent != null)
            {
                senderId = parent.Name + senderId;
            }

            ScrollPresenterViewChangeResult result = ScrollPresenterTestHooks.GetZoomCompletedResult(args);

            this.fullLogs.Add(senderId + " ZoomCompleted. ZoomFactorChangeId=" + args.ZoomInfo.ZoomFactorChangeId + ", Result=" + result);
            chkLogUpdated.IsChecked = false;

            if (args.ZoomInfo.ZoomFactorChangeId == scrollView52ZoomFactorChangeId)
            {
                this.txtResetStatus.Text       = "Views reset";
                scrollView52ZoomFactorChangeId = -1;
            }
        }