예제 #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);
        }
예제 #2
0
 private void OnDebouncingChanged(object sender, EventArgs e)
 {
     Debouncing = MouseWheel.GetZoomDebouncing(sender as DependencyObject);
 }