CompositionViewBox.Stretch Property

Definition

Gets or sets a value that specifies how content fits into the available space.

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

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

void Stretch(CompositionStretch value);
public CompositionStretch Stretch { get; set; }
var compositionStretch = compositionViewBox.stretch;
compositionViewBox.stretch = compositionStretch;
Public Property Stretch As CompositionStretch

Property Value

CompositionStretch

An enumeration value that specifies how content fits into the available space. The default is Uniform.

Applies to