CompositionViewBox.VerticalAlignmentRatio Property


Gets or sets the vertical alignment ratio of the view box.

Equivalent WinUI property: Microsoft.UI.Composition.CompositionViewBox.VerticalAlignmentRatio.

 property float VerticalAlignmentRatio { float get(); void set(float value); };
float VerticalAlignmentRatio();

void VerticalAlignmentRatio(float value);
public float VerticalAlignmentRatio { get; set; }
var single = compositionViewBox.verticalAlignmentRatio;
compositionViewBox.verticalAlignmentRatio = single;
Public Property VerticalAlignmentRatio As Single

Property Value


The vertical alignment ratio of the view box.

The default value is set to 0.5.

Applies to