/// <summary> /// Event handler when user zooms with context menu. /// </summary> /// <param name="newValue"></param> protected void OnZoomChanged(int newValue) { var zoomSliderEventArgs = new ZoomSliderEventArgs(MaxValue, MinValue, Value, newValue); if (ZoomChanged != null) { ZoomChanged(this, zoomSliderEventArgs); } }
protected void OnCenteredClicked() { var zoomSliderEventArgs = new ZoomSliderEventArgs(MaxValue, MinValue, Value); if (CenteredClicked != null) { CenteredClicked(this, zoomSliderEventArgs); } }