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