Udostępnij za pośrednictwem


BringIntoViewOptions.VerticalOffset Property

Definition

Gets or sets the vertical distance to add to the viewport-relative position of the TargetRect after satisfying the requested VerticalAlignmentRatio.

public:
 property double VerticalOffset { double get(); void set(double value); };
double VerticalOffset();

void VerticalOffset(double value);
public double VerticalOffset { get; set; }
var double = bringIntoViewOptions.verticalOffset;
bringIntoViewOptions.verticalOffset = double;
Public Property VerticalOffset As Double

Property Value

Double

double

The vertical distance to add to the viewport-relative position of the TargetRect after satisfying the requested VerticalAlignmentRatio.

Windows requirements

Device family
Windows 10, version 1803 (introduced in 10.0.17134.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v6.0)

Remarks

This provides a simple way to position an element a certain amount from the top or bottom edge of the viewport.

Applies to