Struct PreferredSizeContext
Provides a context for determining the preferred size of a UI element.
public readonly struct PreferredSizeContext
Constructors
- PreferredSizeContext(SizeD)
Initializes a new instance of the PreferredSizeContext struct with the specified available size.
- PreferredSizeContext(float, float)
Initializes a new instance of the PreferredSizeContext struct with the specified available width and height.
Fields
- PositiveInfinity
Represents a context with a preferred size of positive infinity.
Properties
- AvailableSize
Gets the available size for the UI element in this context.
- MaxCoord
Gets a PreferredSizeContext instance representing the maximum coordinate value which can be used for the layout purposes.
Operators
- implicit operator PreferredSizeContext(SizeD)
Implicitly converts a SizeD to a PreferredSizeContext.