Interface IScrollAnchorInfo
Interface providing anchor information to its ScrollViewer.
public interface IScrollAnchorInfo
Properties
ScrollOwner
Gets or sets a ScrollViewer element that controls scrolling behavior.
ScrollViewer ScrollOwner { get; set; }
Property Value
Methods
GetSurroudingAnchorDistances(Orientation, float)
Get the distances to the previous and next anchors in the provided direction and from given position.
Vector2 GetSurroudingAnchorDistances(Orientation direction, float position)
Parameters
direction
OrientationThe direction in which to anchor
position
floatThe current scrolling position
Returns
- Vector2
The distances to previous and next anchors from to current scroll position
Remarks
The distance contained in the X component of the returned vector is inferior or equal to 0 and the distance contained in the Y component is superior or equal to 0.
ShouldAnchor(Orientation)
Indicate whether the ScrollViewer managing this element should snap scrolling to anchors in the provided direction.
bool ShouldAnchor(Orientation direction)
Parameters
direction
OrientationThe direction in which to anchor