StretchDirection Enum

Summary

Describes the type of scaling that can be used when scaling content.
Namespace
Avalonia.Media
Interfaces
  • IComparable
  • IFormattable
  • IConvertible
Base Types
  • object
  • ValueType
  • Enum
graph BT Type-->Base0["Enum"] Base0-->Base1["ValueType"] Base1-->Base2["object"] Type-.->Interface0["IComparable"] Type-.->Interface1["IFormattable"] Type-.->Interface2["IConvertible"] Type["StretchDirection"] class Type type-node

Syntax

public enum StretchDirection

Fields

Name Constant Value Summary
Both 2
Always stretches to fit the available space according to the stretch mode.
static
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.
static
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.
static

Extension Methods