StretchDirection Enum

Definitie

Beschrijft hoe schalen van toepassing is op inhoud en het schalen beperkt tot benoemde astypen.

public enum class StretchDirection
public enum StretchDirection
type StretchDirection = 
Public Enum StretchDirection
Overname
StretchDirection

Velden

Name Waarde Description
UpOnly 0

De inhoud wordt alleen omhoog geschaald als deze kleiner is dan het bovenliggende item. Als de inhoud groter is, wordt er geen omlaag schalen uitgevoerd.

DownOnly 1

De inhoud wordt alleen omlaag geschaald als deze groter is dan het bovenliggende item. Als de inhoud kleiner is, wordt er geen omhoog schalen uitgevoerd.

Both 2

De inhoud wordt uitgerekt zodat deze past bij het bovenliggende item volgens de Stretch modus.

Voorbeelden

In het volgende voorbeeld ziet u hoe u een exemplaar van Viewbox de StretchDirection inhoud maakt en instelt met behulp van code.


// Create a Viewbox and add it to the Canvas
myViewbox = gcnew Viewbox();
myViewbox->StretchDirection = StretchDirection::Both;
myViewbox->Stretch = Stretch::Fill;
myViewbox->MaxWidth = 400;
myViewbox->MaxHeight = 400;

// Create a Viewbox and add it to the Canvas
myViewbox = new Viewbox();
myViewbox.StretchDirection = StretchDirection.Both;
myViewbox.Stretch = Stretch.Fill;
myViewbox.MaxWidth = 400;
myViewbox.MaxHeight = 400;

' Create a ViewBox and add it to the Canvas
Dim myViewbox As New Viewbox()
myViewbox.StretchDirection = StretchDirection.Both
myViewbox.Stretch = Stretch.Fill
myViewbox.MaxWidth = 400
myViewbox.MaxHeight = 400

Van toepassing op

Zie ook