Ratio View

Constrain a view to a certain ratio.

Inherits from Xamarin.Forms.ContentView.

This is a simple view that allows you to constrain the size to a certain ratio.

Properties

Ratio

string

The ratio to constrain the view to (ex: "16:9").

Example

<Rock:RatioView Ratio="16:9">
    <Rock:Image Source="example.com/image.png" />
</Rock:RatioView>

Last updated

⚙️ Powered by Rock RMS