Esempio n. 1
0
        /// <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);
            }
        }
Esempio n. 2
0
        protected void OnCenteredClicked()
        {
            var zoomSliderEventArgs = new ZoomSliderEventArgs(MaxValue, MinValue, Value);

            if (CenteredClicked != null)
            {
                CenteredClicked(this, zoomSliderEventArgs);
            }
        }