Centering in Xamarin.Form's RelativeLayout vs Android's RelativeLayout

JohnnyWuJohnnyWu USMember ✭✭

When programming in Android, if I have to center something, this is all I need is the below line in the XML:
android:CenterInParent="true"

If there an equivalent way to center an object in XAML?

Thanks!

Answers

  • CharwakaCharwaka INMember ✭✭✭✭✭

    HorizontalOptions="Center" VerticalOptions ="Center" Make sure your parent is Grid

Sign In or Register to comment.