Stretch Enum

Summary

Describes how content is resized to fill its allocated space.
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["Stretch"] class Type type-node

Syntax

public enum Stretch

Fields

Name Constant Value Summary
Fill 1
The content is resized to fill the destination dimensions. The aspect ratio is not preserved.
static
None 0
The content preserves its original size.
static
Uniform 2
The content is resized to fit in the destination dimensions while preserving its native aspect ratio.
static
UniformToFill 3
The content is resized to completely fill the destination rectangle while preserving its native aspect ratio. A portion of the content may not be visible if the aspect ratio of the content does not match the aspect ratio of the allocated space.
static

Extension Methods