/// <summary> /// Raise the zoom changed event /// </summary> protected void RaiseZoomChanged() { ZoomRoutedEventArgs args = new ZoomRoutedEventArgs(_Scale); args.RoutedEvent = ZoomChangedEvent; RaiseEvent(args); }
/// <summary> /// If zoom change in document, receive the event here (must be plugged in doc activation) /// </summary> /// <param name="sender"></param> /// <param name="e"></param> public void OnZoomChanged(object sender, ZoomRoutedEventArgs e) { this.sliderZoom.Value = e.Scale; }
/// <summary> /// Event handler to receive zoom changes from other controls /// </summary> /// <param name="sender"></param> /// <param name="e"></param> public void OnZoomChanged(object sender, ZoomRoutedEventArgs e) { Scale = e.Scale; }