Constrain a view to a certain ratio.
Last updated 2 years ago
Inherits from .
This is a simple view that allows you to constrain the size to a certain ratio.
Ratio
string
The ratio to constrain the view to (ex: "16:9").
<Rock:RatioView Ratio="16:9"> <Rock:Image Source="example.com/image.png" /> </Rock:RatioView>