Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The Viewbox control is used to stretch or scale a child element. This control derives from the Decorator class and provides a simple way to scale its content to fill available space while maintaining aspect ratio.
| Title | Description |
|---|---|
| Apply Stretch Properties to the Contents of a Viewbox | Learn how to change the stretch and stretch direction properties of a Viewbox. |
Styles and templates
You can customize the appearance of the Viewbox control by modifying its default style and template.
Content property
The Child property is the content property for the Viewbox control. This property contains the single child element that the Viewbox scales or stretches.
Parts
This control doesn't define any template parts.
Visual states
This control doesn't define any visual states.
See also
.NET Desktop feedback