CompositionViewBox.VerticalAlignmentRatio Property

Definition

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

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

public:
 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

Single

The vertical alignment ratio of the view box.

The default value is set to 0.5.

Applies to