Forum Xamarin.Forms
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

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.