C# Class Microsoft.Silverlight.Testing.Controls.ScrollExtensions

The ScrollExtensions class provides utility methods for scrolling items ScrollViewers.
Mostrar archivo Open project: garyjohnson/wpnest

Public Methods

Method 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

Method 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 method

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 System.Windows.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. ///
return void

LineDown() public static method

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

LineLeft() public static method

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

LineRight() public static method

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

LineUp() public static method

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

PageDown() public static method

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

PageLeft() public static method

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

PageRight() public static method

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

PageUp() public static method

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

ScrollToBottom() public static method

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

ScrollToTop() public static method

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