Viewbox.Stretch Property

Definition

Gets or sets the Stretch mode, which determines how content fits into the available space.

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

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

void Stretch(Stretch value);
public Stretch Stretch { get; set; }
var stretch = viewbox.stretch;
viewbox.stretch = stretch;
Public Property Stretch As Stretch
<ViewBox Stretch="stretchMemberName"/>

Property Value

Stretch

A Stretch mode, which determines how content fits in the available space. The default is Uniform.

Applies to