Appearance
Height
Use this container to enforce additional sizing rules, e.g. minimum/maximum/exact height.
csharp
// adjust the height to a specific value
.Height(50)
// set a constraint on the minimum and/or maximum height
.MinHeight(50)
.MaxHeight(100)
// adjust the height to a specific value
.Height(50)
// set a constraint on the minimum and/or maximum height
.MinHeight(50)
.MaxHeight(100)
DANGER
Please be careful. This component may try to enforce size constraints that are impossible to meet, e.g. when:
- the container requires more space than is available, or
- when it tries to squeeze its child into less space than possible.
Such scenarios result in a layout exception.