C# Class ModernWPF.Controls.AnimatedScrollViewer

Inheritance: System.Windows.Controls.ScrollViewer
Mostrar archivo Open project: soukoku/ModernWPF Class Usage Examples

Public Properties

Property Type Description
AnimateDurationProperty System.Windows.DependencyProperty
AnimateScrollProperty System.Windows.DependencyProperty
AnimateSplineProperty System.Windows.DependencyProperty
CanKeyboardScrollProperty System.Windows.DependencyProperty
HorizontalScrollOffsetProperty System.Windows.DependencyProperty
TargetHorizontalOffsetProperty System.Windows.DependencyProperty
TargetVerticalOffsetProperty System.Windows.DependencyProperty
VerticalScrollOffsetProperty System.Windows.DependencyProperty

Public Methods

Method Description
OnApplyTemplate ( ) : void

Called when an internal process or application calls M:System.Windows.FrameworkElement.ApplyTemplate, which is used to build the current template's visual tree.

Protected Methods

Method Description
OnKeyDown ( System.Windows.Input.KeyEventArgs e ) : void

Responds to specific keyboard input and invokes associated scrolling behavior.

OnPreviewMouseWheel ( System.Windows.Input.MouseWheelEventArgs e ) : void

Invoked when an unhandled E:System.Windows.Input.Mouse.PreviewMouseWheel attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

Private Methods

Method Description
AniHScrollBar_ValueChanged ( object sender, RoutedPropertyChangedEventArgs e ) : void
AniVScrollBar_ValueChanged ( object sender, RoutedPropertyChangedEventArgs e ) : void
AnimateNow ( ) : void
AnimatedScrollViewer ( ) : System
HandleHWheel ( object sender, System.Windows.Input.MouseWheelEventArgs e ) : void
NormalizeScrollPos ( double scrollChange, Orientation o ) : double
OnHorizontalScrollOffsetChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnTargetHorizontalOffsetChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnTargetVerticalOffsetChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnVerticalScrollOffsetChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
_realHorizontalScrollBar_ValueChanged ( object sender, RoutedPropertyChangedEventArgs e ) : void
_realVerticalScrollBar_ValueChanged ( object sender, RoutedPropertyChangedEventArgs e ) : void

Method Details

OnApplyTemplate() public method

Called when an internal process or application calls M:System.Windows.FrameworkElement.ApplyTemplate, which is used to build the current template's visual tree.
public OnApplyTemplate ( ) : void
return void

OnKeyDown() protected method

Responds to specific keyboard input and invokes associated scrolling behavior.
protected OnKeyDown ( System.Windows.Input.KeyEventArgs e ) : void
e System.Windows.Input.KeyEventArgs Required arguments for this event.
return void

OnPreviewMouseWheel() protected method

Invoked when an unhandled E:System.Windows.Input.Mouse.PreviewMouseWheel attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.
protected OnPreviewMouseWheel ( System.Windows.Input.MouseWheelEventArgs e ) : void
e System.Windows.Input.MouseWheelEventArgs The that contains the event data.
return void

Property Details

AnimateDurationProperty public_oe static_oe property

The dependency property for AnimateDuration.
public static DependencyProperty,System.Windows AnimateDurationProperty
return System.Windows.DependencyProperty

AnimateScrollProperty public_oe static_oe property

The dependency property for AnimateScroll.
public static DependencyProperty,System.Windows AnimateScrollProperty
return System.Windows.DependencyProperty

AnimateSplineProperty public_oe static_oe property

The dependency property for AnimateSpline.
public static DependencyProperty,System.Windows AnimateSplineProperty
return System.Windows.DependencyProperty

CanKeyboardScrollProperty public_oe static_oe property

The dependency property for CanKeyboardScroll.
public static DependencyProperty,System.Windows CanKeyboardScrollProperty
return System.Windows.DependencyProperty

HorizontalScrollOffsetProperty public_oe static_oe property

The dependency property for HorizontalScrollOffset.
public static DependencyProperty,System.Windows HorizontalScrollOffsetProperty
return System.Windows.DependencyProperty

TargetHorizontalOffsetProperty public_oe static_oe property

The dependency property for TargetHorizontalOffset.
public static DependencyProperty,System.Windows TargetHorizontalOffsetProperty
return System.Windows.DependencyProperty

TargetVerticalOffsetProperty public_oe static_oe property

The dependency property for TargetVerticalOffset.
public static DependencyProperty,System.Windows TargetVerticalOffsetProperty
return System.Windows.DependencyProperty

VerticalScrollOffsetProperty public_oe static_oe property

The dependency property for VerticalScrollOffset.
public static DependencyProperty,System.Windows VerticalScrollOffsetProperty
return System.Windows.DependencyProperty