C# Class WinRTXamlToolkit.Controls.ScrollExtensions

The ScrollExtensions class provides utility methods for scrolling items ScrollViewers.
Afficher le fichier Open project: xyzzer/WinRTXamlToolkit

Méthodes publiques

Méthode Description
GetTopAndBottom ( this element, FrameworkElement parent, double &top, double &bottom ) : void

Get the top and bottom of an element with respect to its parent.

LineDown ( this viewer ) : void

Scroll the ScrollViewer down by a line.

LineLeft ( this viewer ) : void

Scroll the ScrollViewer left by a line.

LineRight ( this viewer ) : void

Scroll the ScrollViewer right by a line.

LineUp ( this viewer ) : void

Scroll the ScrollViewer up by a line.

PageDown ( this viewer ) : void

Scroll the ScrollViewer down by a page.

PageLeft ( this viewer ) : void

Scroll the ScrollViewer left by a page.

PageRight ( this viewer ) : void

Scroll the ScrollViewer right by a page.

PageUp ( this viewer ) : void

Scroll the ScrollViewer up by a page.

ScrollToBottom ( this viewer ) : void

Scroll the ScrollViewer to the bottom.

ScrollToTop ( this viewer ) : void

Scroll the ScrollViewer to the top.

Private Methods

Méthode Description
ScrollByHorizontalOffset ( ScrollViewer viewer, double offset ) : void

Scroll a ScrollViewer horizontally by a given offset.

ScrollByVerticalOffset ( ScrollViewer viewer, double offset ) : void

Scroll a ScrollViewer vertically by a given offset.

Method Details

GetTopAndBottom() public static méthode

Get the top and bottom of an element with respect to its parent.
public static GetTopAndBottom ( this element, FrameworkElement parent, double &top, double &bottom ) : void
element this The element to get the position of.
parent Windows.UI.Xaml.FrameworkElement The parent of the element.
top double Vertical offset to the top of the element.
bottom double /// Vertical offset to the bottom of the element. ///
Résultat void

LineDown() public static méthode

Scroll the ScrollViewer down by a line.
public static LineDown ( this viewer ) : void
viewer this The ScrollViewer.
Résultat void

LineLeft() public static méthode

Scroll the ScrollViewer left by a line.
public static LineLeft ( this viewer ) : void
viewer this The ScrollViewer.
Résultat void

LineRight() public static méthode

Scroll the ScrollViewer right by a line.
public static LineRight ( this viewer ) : void
viewer this The ScrollViewer.
Résultat void

LineUp() public static méthode

Scroll the ScrollViewer up by a line.
public static LineUp ( this viewer ) : void
viewer this The ScrollViewer.
Résultat void

PageDown() public static méthode

Scroll the ScrollViewer down by a page.
public static PageDown ( this viewer ) : void
viewer this The ScrollViewer.
Résultat void

PageLeft() public static méthode

Scroll the ScrollViewer left by a page.
public static PageLeft ( this viewer ) : void
viewer this The ScrollViewer.
Résultat void

PageRight() public static méthode

Scroll the ScrollViewer right by a page.
public static PageRight ( this viewer ) : void
viewer this The ScrollViewer.
Résultat void

PageUp() public static méthode

Scroll the ScrollViewer up by a page.
public static PageUp ( this viewer ) : void
viewer this The ScrollViewer.
Résultat void

ScrollToBottom() public static méthode

Scroll the ScrollViewer to the bottom.
public static ScrollToBottom ( this viewer ) : void
viewer this The ScrollViewer.
Résultat void

ScrollToTop() public static méthode

Scroll the ScrollViewer to the top.
public static ScrollToTop ( this viewer ) : void
viewer this The ScrollViewer.
Résultat void