Exemplo n.º 1
0
 public TroutZoom(IWpfTextView view)
 {
     this._view                        = view;
     this._zoomPropertyName            = TroutZoom.GetPropertyName <double>((Expression <Func <double> >)(() => Settings.Default.LastZoomLevel));
     this._bFirst                      = true;
     Settings.Default.PropertyChanged += new PropertyChangedEventHandler(this.Default_PropertyChanged);
     this._view.LayoutChanged         += new EventHandler <TextViewLayoutChangedEventArgs>(this.LayoutChanged);
     this._view.ZoomLevelChanged      += new EventHandler <ZoomLevelChangedEventArgs>(this.ZoomLevelChanged);
     this._view.Closed                += new EventHandler(this.ViewClosed);
 }
Exemplo n.º 2
0
 public void TextViewCreated(IWpfTextView textView)
 {
     TroutZoom troutZoom = new TroutZoom(textView);
 }