Пример #1
0
 private void ZoomLevelChanged(object sender, ZoomLevelChangedEventArgs e)
 {
     if (sender == this || Settings.Default.LastZoomLevel == e.NewZoomLevel)
     {
         return;
     }
     Settings.Default.LastZoomLevel = e.NewZoomLevel;
     Settings.Default.Save();
 }
Пример #2
0
		void TextView_ZoomLevelChanged(object sender, ZoomLevelChangedEventArgs e) => UpdateTextWithZoomLevel();
Пример #3
0
 void TextView_ZoomLevelChanged(object sender, ZoomLevelChangedEventArgs e) => LayoutTransform = e.ZoomTransform;
Пример #4
0
		void TextView_ZoomLevelChanged(object sender, ZoomLevelChangedEventArgs e) {
			LayoutTransform = e.ZoomTransform;
			DsImage.SetZoom(this, e.NewZoomLevel / 100);
		}
Пример #5
0
 void TextView_ZoomLevelChanged(object sender, ZoomLevelChangedEventArgs e)
 {
     LayoutTransform = e.ZoomTransform;
     SetValue(ZoomProperty, e.NewZoomLevel / 100);
 }
Пример #6
0
 void OnZoomLevelChanged(object sender, ZoomLevelChangedEventArgs e)
 {
     _visualManager.MarginVisual.LayoutTransform = e.ZoomTransform;
 }
Пример #7
0
 private void TextViewOnZoomLevelChanged(object sender, ZoomLevelChangedEventArgs e)
 {
     OnZoomLevelChanged();
 }
Пример #8
0
 void TextView_ZoomLevelChanged(object?sender, ZoomLevelChangedEventArgs e)
 {
     LayoutTransform = e.ZoomTransform;
     DsImage.SetZoom(this, e.NewZoomLevel / 100);
 }
Пример #9
0
 private void TextViewOnZoomLevelChanged(object sender, ZoomLevelChangedEventArgs e)
 {
     LayoutTransform = e.ZoomTransform;
 }
Пример #10
0
 private void OnZoomLevelChanged(object sender, ZoomLevelChangedEventArgs e)
 {
     _grid.LayoutTransform = e.ZoomTransform;
     _refreshAllGlyphs     = true;
 }
Пример #11
0
 private void OnZoomLevelChanged(object sender, ZoomLevelChangedEventArgs e)
 {
     SetZoomLevel(e.NewZoomLevel);
 }
Пример #12
0
 private void OnZoomChanged(object sender, ZoomLevelChangedEventArgs e)
 {
     _zoomChanged = true;
 }
Пример #13
0
 /// <summary>
 /// Event handler that occurs when the <see cref="IWpfTextView.ZoomLevel"/> is set.
 /// </summary>
 /// <param name="sender">Event sender.</param>
 /// <param name="e">Event arguments.</param>
 private void OnTextViewZoomLevelChanged(object sender, ZoomLevelChangedEventArgs e)
 {
     Redraw(true, MarginDrawReason.TextViewZoomLevelChanged);
 }
Пример #14
0
 private void OnZoomChanged(object sender, ZoomLevelChangedEventArgs args)
 {
     ZoomChanged?.Invoke((IWpfTextView)sender, args.NewZoomLevel);
 }
Пример #15
0
		void TextView_ZoomLevelChanged(object sender, ZoomLevelChangedEventArgs e) => LayoutTransform = e.ZoomTransform;
 void OnZoomLevelChanged(object sender, ZoomLevelChangedEventArgs e)
 {
     refreshAllGlyphs             = true;
     marginVisual.LayoutTransform = e.ZoomTransform;
 }
 /// <summary>
 /// Event handler that occurs when the <see cref="IWpfTextView.ZoomLevel"/> is set.
 /// </summary>
 /// <param name="sender">Event sender.</param>
 /// <param name="e">Event arguments.</param>
 private void OnTextViewZoomLevelChanged(object sender, ZoomLevelChangedEventArgs e)
 {
     Redraw(true, MarginDrawReason.TextViewZoomLevelChanged);
 }
 void OnZoomLevelChanged(object sender, ZoomLevelChangedEventArgs e)
 {
     _visualManager.MarginVisual.LayoutTransform = e.ZoomTransform;
 }
Пример #19
0
 void TextView_ZoomLevelChanged(object sender, ZoomLevelChangedEventArgs e) => UpdateTextWithZoomLevel();
Пример #20
0
 void UpdateZoom(object sender, ZoomLevelChangedEventArgs args)
 {
     m_zoomLevel     = args.NewZoomLevel / 100.0;
     m_text.FontSize = m_fontSize * m_zoomLevel;
 }