Exemple #1
0
 private void ProcessZoom()
 {
     this.Visibility = this._savedVisibility;
     this.EvaluateLayout();
     this.InvalidateArrange();
     this._processZoomCallback = (AdornerLayer.ProcessZoomCallback)null;
 }
Exemple #2
0
 private void OnZoomLevelChanged(object sender, EventArgs e)
 {
     if (this._processZoomCallback != null)
     {
         return;
     }
     this._savedVisibility = this.Visibility;
     if (this._hasRendered)
     {
         this.Visibility = Visibility.Collapsed;
     }
     this._processZoomCallback = new AdornerLayer.ProcessZoomCallback(this.ProcessZoom);
     this.Dispatcher.BeginInvoke((Delegate)this._processZoomCallback, DispatcherPriority.Background, new object[0]);
 }