Shape.Stretch Property

Definition

Gets or sets a Stretch enumeration value that describes how the shape fills its allocated space.

Equivalent WinUI property: Microsoft.UI.Xaml.Shapes.Shape.Stretch.

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

void Stretch(Stretch value);
public Stretch Stretch { get; set; }
var stretch = shape.stretch;
shape.stretch = stretch;
Public Property Stretch As Stretch
<object Stretch="stretchvalueName"/>

Property Value

Stretch

One of the Stretch enumeration values. The default value at run time depends on the type of Shape.

Applies to