GetHorizontalScrollPercent Method

PivotAutomationPeer.GetHorizontalScrollPercent Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Retrieves the current horizontal scroll position, expressed as a percentage of the total content area within the control.

Namespace:  Microsoft.Phone.Automation.Peers
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)

public double GetHorizontalScrollPercent(
	int itemsCount,
	bool isLocked,
	int selectedIndex
)

Parameters

itemsCount
Type: System.Int32
The number of pivot items.
isLocked
Type: System.Boolean
A value that determines whether the pivot control is locked.
selectedIndex
Type: System.Int32
The index of the selected PivotItem.

Return Value

Type: System.Double
Returns Double.

Windows Phone OS

Supported in: 8.1

Show:
© 2017 Microsoft