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