In Microsoft's Xamarin documentation, they have this example here that shows how to do it with XAML, but I have some frames that I am generating dynamically so I need to be able to do it in C#.
Here is the XAML code to do it, can anyone translate this into C# for me?
<BoxView Color="Red"
WidthRequest="200"
HeightRequest="{Binding Source={RelativeSource Self}, Path=WidthRequest}"
HorizontalOptions="Center" />
Thank you!