Forum Xamarin.iOS
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.

xamarin IOS designer cannot constraint to super view edges?

Ram_phaniRam_phani INMember

I found that I cannot constraint to the leading edge or trailing edge of the Container View. However, I can only constraint to the Leading margin or Trailing margin(Picture Attached). Is there a way to let me constraint to the edges of a super view not the margin?


  • lakhanimilan91lakhanimilan91 INMember ✭✭


    You can give constraints by setting 'Constraints to margin' check-box to uncheck while adding constraints. This will add constraints by edges.

  • ChrisJohnsonChrisJohnson USMember ✭✭

    Hey thanks, that's a good piece of info. I was achieving the result by setting the constant value to -20 but this is the right way to do it!

  • Ram_phaniRam_phani INMember

    thank you for reply.
    I am using visual studio 2015,Where i find the 'Constraints to margin' option?

  • lakhanimilan91lakhanimilan91 INMember ✭✭

    Sry.. I haven't use visual studio, so i have no knowledge of it.

  • Michael_ShapiroMichael_Shapiro USMember ✭✭✭

    Is there anyone who knows how to fix it in Visual Studio, please?

  • KraigSPEARKraigSPEAR USUniversity ✭✭

    There doesn't seem to be an option to not constrain to margins in VS.

    To work around.

    1. Create the constraint with the margin
    2. Uncheck 'relative to margin' in the newly created constraint.

  • Michael_ShapiroMichael_Shapiro USMember ✭✭✭

    I use Visual Studio for Windows. This is what I have to work with:

  • KraigSPEARKraigSPEAR USUniversity ✭✭

    Interesting, there isn't a combo box to change... sorry. If I remember I'll try this on Windows later...

Sign In or Register to comment.