Class DynamicScrollViewer
Custom ScrollViewer with events depending on actions taken by the user.
public class DynamicScrollViewer : PassiveScrollViewer, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild
- Inheritance
-
DynamicScrollViewer
- Implements
- Inherited Members
Fields
IsScrollingHorizontallyProperty
Identifies the IsScrollingHorizontally dependency property.
public static readonly DependencyProperty IsScrollingHorizontallyProperty
Field Value
IsScrollingVerticallyProperty
Identifies the IsScrollingVertically dependency property.
public static readonly DependencyProperty IsScrollingVerticallyProperty
Field Value
MinimalChangeProperty
Identifies the MinimalChange dependency property.
public static readonly DependencyProperty MinimalChangeProperty
Field Value
TimeoutProperty
Identifies the Timeout dependency property.
public static readonly DependencyProperty TimeoutProperty
Field Value
Properties
IsScrollingHorizontally
Gets or sets a value indicating whether the user was scrolling horizontally for the last few seconds.
public bool IsScrollingHorizontally { get; set; }
Property Value
IsScrollingVertically
Gets or sets a value indicating whether the user was scrolling vertically for the last few seconds.
public bool IsScrollingVertically { get; set; }
Property Value
MinimalChange
Gets or sets the value required for the scroll to show automatically.
public double MinimalChange { get; set; }
Property Value
Timeout
Gets or sets time after which the scroll is to be hidden.
public int Timeout { get; set; }
Property Value
Methods
OnScrollChanged(ScrollChangedEventArgs)
OnScrollChanged is an override called whenever scrolling state changes on this DynamicScrollViewer.
protected override void OnScrollChanged(ScrollChangedEventArgs e)
Parameters
e
ScrollChangedEventArgsScrollChangedEventArgs containing information about the change in scrolling state.
Remarks
OnScrollChanged fires the ScrollChangedEvent. Overriders of this method should call base.OnScrollChanged(args) if they want the event to be fired.