C# Класс WinRTXamlToolkit.Controls.ScrollExtensions

The ScrollExtensions class provides utility methods for scrolling items ScrollViewers.
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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.

Описание методов

GetTopAndBottom() публичный статический Метод

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. ///
Результат void

LineDown() публичный статический Метод

Scroll the ScrollViewer down by a line.
public static LineDown ( this viewer ) : void
viewer this The ScrollViewer.
Результат void

LineLeft() публичный статический Метод

Scroll the ScrollViewer left by a line.
public static LineLeft ( this viewer ) : void
viewer this The ScrollViewer.
Результат void

LineRight() публичный статический Метод

Scroll the ScrollViewer right by a line.
public static LineRight ( this viewer ) : void
viewer this The ScrollViewer.
Результат void

LineUp() публичный статический Метод

Scroll the ScrollViewer up by a line.
public static LineUp ( this viewer ) : void
viewer this The ScrollViewer.
Результат void

PageDown() публичный статический Метод

Scroll the ScrollViewer down by a page.
public static PageDown ( this viewer ) : void
viewer this The ScrollViewer.
Результат void

PageLeft() публичный статический Метод

Scroll the ScrollViewer left by a page.
public static PageLeft ( this viewer ) : void
viewer this The ScrollViewer.
Результат void

PageRight() публичный статический Метод

Scroll the ScrollViewer right by a page.
public static PageRight ( this viewer ) : void
viewer this The ScrollViewer.
Результат void

PageUp() публичный статический Метод

Scroll the ScrollViewer up by a page.
public static PageUp ( this viewer ) : void
viewer this The ScrollViewer.
Результат void

ScrollToBottom() публичный статический Метод

Scroll the ScrollViewer to the bottom.
public static ScrollToBottom ( this viewer ) : void
viewer this The ScrollViewer.
Результат void

ScrollToTop() публичный статический Метод

Scroll the ScrollViewer to the top.
public static ScrollToTop ( this viewer ) : void
viewer this The ScrollViewer.
Результат void