StretchDirection Enumeration
Describes the type of scaling that can be used when scaling content.
Definition
Namespace: Avalonia.Media
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
public enum StretchDirection
Public Enumeration StretchDirection
type StretchDirection
Members
UpOnly | 0 | Only scales the content upwards when the content is smaller than the available space. If the content is larger, no scaling downwards is done. |
DownOnly | 1 | Only scales the content downwards when the content is larger than the available space. If the content is smaller, no scaling upwards is done. |
Both | 2 | Always stretches to fit the available space according to the stretch mode. |