示例#1
0
        /// <exception cref="InvalidOperationException">The IsScrolling property is read-only. </exception>
        internal void IsScrollingPropertyChanged(DependencyPropertyChangedEventArgs e)
        {
            if (_allowIsScrollingChanges != true)
            {
                throw new InvalidOperationException("The IsScrolling property is read-only. ");
            }

            _isScrolling = (bool)e.NewValue;

            var args = new ScrollingStateChangedEventArgs((bool)e.OldValue, (bool)e.NewValue);

            OnScrollingStateChanged(args);

            var handler = ScrollingStateChanged;

            if (handler != null)
            {
                handler(this, args);
            }
        }
示例#2
0
 protected virtual void OnScrollingStateChanged(ScrollingStateChangedEventArgs e)
 {
     // Must be empty
 }