Exemplo n.º 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);
        }
Exemplo n.º 2
0
 private void OnSmoothingChanged(object sender, EventArgs e)
 {
     Smoothing = MouseWheel.GetZoomSmoothing(sender as DependencyObject);
 }