Ejemplo n.º 1
0
        public MouseWheelZoomBehavior(IMouseWheelClient client)
            : base(client)
        {
            var element = Client.Controller.Element;

            NestedMotionEnabled = MouseWheel.GetNestedZoom(element);
            Debouncing          = MouseWheel.GetZoomDebouncing(element);
            MouseWheel.NestedZoomProperty.AddValueChanged(element, OnNestedZoomChanged);
            MouseWheel.ZoomDebouncingProperty.AddValueChanged(element, OnDebouncingChanged);
        }
Ejemplo n.º 2
0
 private void OnNestedZoomChanged(object sender, EventArgs e)
 {
     NestedMotionEnabled = MouseWheel.GetNestedZoom(sender as DependencyObject);
 }