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

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