Export (0) Print
Expand All

Viewbox.Stretch Property

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

Namespace:  System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)
XMLNS for XAML: http://schemas.microsoft.com/winfx/2006/xaml/presentation, http://schemas.microsoft.com/netfx/2007/xaml/presentation

member Stretch : Stretch with get, set
<object Stretch="Stretch" .../>

Property Value

Type: System.Windows.Media.Stretch
A Stretch that determines how content fits in the available space. The default is Uniform.

Identifier field

StretchProperty

Metadata properties set to true

AffectsMeasure

The following example shows how to create an instance of Viewbox and then set the Stretch property by using code.

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

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft