IXRScrollViewer::ScrollToVerticalOffset (Compact 2013)
3/28/2014
This method scrolls the content that is within the scroll viewer to the specified vertical offset position.
Syntax
virtual HRESULT STDMETHODCALLTYPE ScrollToVerticalOffset(
float Offset
) = 0;
Parameters
- Offset
[in] A float value that indicates the position, in pixels, that the content scrolls to.
Return Value
Returns an HRESULT that indicates success or failure.
Remarks
To scroll to an offset that is relative to the length of the vertical extent, you can calculate the Offset value by performing a calculation on the value retrieved by IXRScrollViewer::GetExtentHeight. For example, the extent height divided by 2 provides an offset that is exactly in the middle of the vertical extent.
.NET Framework Equivalent
System.Windows.Controls.ScrollViewer.ScrollToVerticalOffset
Requirements
Header |
XamlRuntime.h |
sysgen |
SYSGEN_XAML_RUNTIME |