Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Image::StretchDirection Property

 

Gets or sets a value that indicates how the image is scaled.

Namespace:   System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

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

Property Value

Type: System.Windows.Controls::StretchDirection

One of the StretchDirection values. The default is Both.

Identifier field

StretchDirectionProperty

Metadata properties set to true

AffectsMeasure

The following example demonstrates how to use this property.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.0
Return to top
Show:
© 2017 Microsoft