Example #1
0
        protected override void OnLoading()
        {
            base.OnLoading();
            var element = Controller.Element;

            _smoothing = MouseWheel.GetZoomSmoothing(element);
            _modifiers = MouseWheel.GetZoomModifiers(element);
            MouseWheel.ZoomSmoothingProperty.AddValueChanged(element, OnSmoothingChanged);
            MouseWheel.ZoomModifiersProperty.AddValueChanged(element, OnModifiersChanged);
        }
Example #2
0
 private void OnModifiersChanged(object sender, EventArgs e)
 {
     _modifiers = MouseWheel.GetZoomModifiers(sender as DependencyObject);
 }