Example #1
0
        public ScrollIncrementSelector(ScrollModeOptions parent)
        {
            Parent = parent;
            _items = new ReadOnlyCollection <ScrollIncrementItem>(new ScrollIncrementItem[] {
                GetDefaultScrollIncrementItem(ScrollIncrementScaleType.Star),
                GetDefaultScrollIncrementItem(ScrollIncrementScaleType.Unity)
            }.ToList());

            SelectedItem = GetDefaultScrollIncrement(ScrollIncrementScaleType.Star);
        }
Example #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);
 }
 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);
 }