BringIntoViewOptions.VerticalAlignmentRatio Property

Definition

Controls the positioning of the horizontal axis of the TargetRect with respect to the horizontal axis of the viewport. The value is clamped from 0.0f to 1.0f with 0.0f representing the top horizontal edge and 1.0f representing the bottom horizontal edge. By default this is set to 0.0f.

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

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

Property Value

Double

double

A value that specifies the positioning of the horizontal axis of the TargetRect with respect to the horizontal axis of the viewport. The default is 0.0f.

Windows requirements

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

Remarks

A value of 0.0f indicates the TargetRect should be top-aligned in the viewport. A value of 1.0f indicates it should be bottom-aligned. A value of 0.5 indicates the TargetRect is vertically centered in the viewport.

Applies to