Esempio n. 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);
            }
        }
Esempio n. 2
0
 protected virtual void OnScrollingStateChanged(ScrollingStateChangedEventArgs e)
 {
     // Must be empty
 }
        /// <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);
        }
 protected virtual void OnScrollingStateChanged(ScrollingStateChangedEventArgs e)
 {
     // Must be empty
 }
Esempio n. 5
0
		internal static void IsScrollingPropertyChanged(DependencyObject source, DependencyPropertyChangedEventArgs e)
		{
			var listbox = (ExtendedListBox) source;
			if (listbox.allowIsScrollingChanges != true)
				throw new InvalidOperationException("IsScrolling property is read-only");

			var args = new ScrollingStateChangedEventArgs((bool)e.OldValue, (bool)e.NewValue);
			listbox.OnScrollingStateChanged(args);
			if (listbox.ScrollingStateChanged != null)
				listbox.ScrollingStateChanged(listbox, args);
		}
Esempio n. 6
0
		protected virtual void OnScrollingStateChanged(ScrollingStateChangedEventArgs e) { }