示例#1
0
        /// <summary>
        /// Raise the zoom changed event
        /// </summary>
        protected void RaiseZoomChanged()
        {
            ZoomRoutedEventArgs args = new ZoomRoutedEventArgs(_Scale);

            args.RoutedEvent = ZoomChangedEvent;
            RaiseEvent(args);
        }
示例#2
0
 /// <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;
 }
示例#3
0
 /// <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;
 }