Viewbox.StretchDirection Property

Definition

Gets or sets the StretchDirection, which determines how scaling is applied to the contents of a Viewbox.

Equivalent WinUI property: Microsoft.UI.Xaml.Controls.Viewbox.StretchDirection.

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

void StretchDirection(StretchDirection value);
public StretchDirection StretchDirection { get; set; }
var stretchDirection = viewbox.stretchDirection;
viewbox.stretchDirection = stretchDirection;
Public Property StretchDirection As StretchDirection
<ViewBox StretchDirection="stretchDirectionMemberName" />

Property Value

StretchDirection

A StretchDirection, which determines how scaling is applied to the contents of a Viewbox. The default is Both.

Applies to