Class ScrollExtensions
The ScrollExtensions class provides utility methods for scrolling items ScrollViewers.
Inheritance
Inherited Members
Namespace: System.Windows.Controls
Assembly: OpenSilver.dll
Syntax
public static class ScrollExtensions
Methods
| Improve this Doc View SourceGetTopAndBottom(FrameworkElement, FrameworkElement, out Double, out Double)
Get the top and bottom of an element with respect to its parent.
Declaration
public static void GetTopAndBottom(this FrameworkElement element, FrameworkElement parent, out double top, out double bottom)
Parameters
Type | Name | Description |
---|---|---|
FrameworkElement | element | The element to get the position of. |
FrameworkElement | parent | The parent of the element. |
System.Double | top | Vertical offset to the top of the element. |
System.Double | bottom | Vertical offset to the bottom of the element. |
LineDown(ScrollViewer)
Scroll the ScrollViewer down by a line.
Declaration
public static void LineDown(this ScrollViewer viewer)
Parameters
Type | Name | Description |
---|---|---|
ScrollViewer | viewer | The ScrollViewer. |
LineLeft(ScrollViewer)
Scroll the ScrollViewer left by a line.
Declaration
public static void LineLeft(this ScrollViewer viewer)
Parameters
Type | Name | Description |
---|---|---|
ScrollViewer | viewer | The ScrollViewer. |
LineRight(ScrollViewer)
Scroll the ScrollViewer right by a line.
Declaration
public static void LineRight(this ScrollViewer viewer)
Parameters
Type | Name | Description |
---|---|---|
ScrollViewer | viewer | The ScrollViewer. |
LineUp(ScrollViewer)
Scroll the ScrollViewer up by a line.
Declaration
public static void LineUp(this ScrollViewer viewer)
Parameters
Type | Name | Description |
---|---|---|
ScrollViewer | viewer | The ScrollViewer. |
PageDown(ScrollViewer)
Scroll the ScrollViewer down by a page.
Declaration
public static void PageDown(this ScrollViewer viewer)
Parameters
Type | Name | Description |
---|---|---|
ScrollViewer | viewer | The ScrollViewer. |
PageLeft(ScrollViewer)
Scroll the ScrollViewer left by a page.
Declaration
public static void PageLeft(this ScrollViewer viewer)
Parameters
Type | Name | Description |
---|---|---|
ScrollViewer | viewer | The ScrollViewer. |
PageRight(ScrollViewer)
Scroll the ScrollViewer right by a page.
Declaration
public static void PageRight(this ScrollViewer viewer)
Parameters
Type | Name | Description |
---|---|---|
ScrollViewer | viewer | The ScrollViewer. |
PageUp(ScrollViewer)
Scroll the ScrollViewer up by a page.
Declaration
public static void PageUp(this ScrollViewer viewer)
Parameters
Type | Name | Description |
---|---|---|
ScrollViewer | viewer | The ScrollViewer. |
ScrollToBottom(ScrollViewer)
Scroll the ScrollViewer to the bottom.
Declaration
public static void ScrollToBottom(this ScrollViewer viewer)
Parameters
Type | Name | Description |
---|---|---|
ScrollViewer | viewer | The ScrollViewer. |
ScrollToTop(ScrollViewer)
Scroll the ScrollViewer to the top.
Declaration
public static void ScrollToTop(this ScrollViewer viewer)
Parameters
Type | Name | Description |
---|---|---|
ScrollViewer | viewer | The ScrollViewer. |