Table of Contents

Class DynamicScrollViewer

Namespace
Wpf.Ui.Controls
Assembly
Wpf.Ui.dll

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

DependencyProperty

IsScrollingVerticallyProperty

Identifies the IsScrollingVertically dependency property.

public static readonly DependencyProperty IsScrollingVerticallyProperty

Field Value

DependencyProperty

MinimalChangeProperty

Identifies the MinimalChange dependency property.

public static readonly DependencyProperty MinimalChangeProperty

Field Value

DependencyProperty

TimeoutProperty

Identifies the Timeout dependency property.

public static readonly DependencyProperty TimeoutProperty

Field Value

DependencyProperty

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

bool

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

bool

MinimalChange

Gets or sets the value required for the scroll to show automatically.

public double MinimalChange { get; set; }

Property Value

double

Timeout

Gets or sets time after which the scroll is to be hidden.

public int Timeout { get; set; }

Property Value

int

Methods

OnScrollChanged(ScrollChangedEventArgs)

OnScrollChanged is an override called whenever scrolling state changes on this DynamicScrollViewer.

protected override void OnScrollChanged(ScrollChangedEventArgs e)

Parameters

e ScrollChangedEventArgs

ScrollChangedEventArgs 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.