public MouseWheelAdaptationBehavior(IMouseWheelClient client) : base(client) { var element = Client.Controller.Element; NestedMotionEnabled = MouseWheel.GetNestedMotion(element); Debouncing = MouseWheel.GetDebouncing(element); MouseWheel.NestedMotionProperty.AddValueChanged(element, OnNestedMotionChanged); MouseWheel.DebouncingProperty.AddValueChanged(element, OnDebouncingChanged); }
private void OnNestedMotionChanged(object sender, EventArgs e) { NestedMotionEnabled = MouseWheel.GetNestedMotion(sender as DependencyObject); }