示例#1
0
 public MouseWheelOptions()
 {
     MouseWheel.NewWheel += (sender, e) => _mouseWheels.Add(sender as MouseWheel);
     _scrollOptions       = new ScrollOptions(this);
     _zoomOptions         = new ZoomOptions(this);
     _adaptationOptions   = new AdaptationOptions(this);
 }
示例#2
0
 public ScrollOrientationOptions(ScrollOptions parent, Orientation orientation)
 {
     Parent = parent;
     Parent.PropertyChanged += OnParentPropertyChanged;
     Orientation             = orientation;
     _scrollMode             = GetDefaultScrollMode();
     _motionSmoothing        = GetDefaultSmoothing();
     _nestedScroll           = GetDefaultNestedScroll();
     _logicalOptions         = new ScrollModeOptions(this, true);
     _physicalOptions        = new ScrollModeOptions(this, false);
 }