コード例 #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);
        }
コード例 #2
0
 private void OnNestedMotionChanged(object sender, EventArgs e)
 {
     NestedMotionEnabled = MouseWheel.GetNestedMotion(sender as DependencyObject);
 }