jkh
jkh

Reputation: 3678

Add an Equal Widths constraint using the Xamarin iOS Designer

In my Xamarin app, I am trying to add a single view to a scroll view. Based on recommendations online, I am trying to set an Equal Widths Constraint between the view and the main view of the controller, but I don't see any way to do it in the Xamarin Studio or Visual Studio designers.

Can this type of constraint be added using the designer?

Upvotes: 1

Views: 449

Answers (1)

StoriKnow
StoriKnow

Reputation: 5866

You can set equal widths between views by doing the following (screenshots to follow):

  1. In the Xamarin iOS Designer, put the designer in Constraint Editing Mode
  2. Click the view you want to make equal width to another (in my screenshot, the Label).
  3. This reveals the view constraints. Hold CTRL, then click and drag on the sideways I in the middle-bottom of the view. You'll notice a blue line appears. Hover your mouse over the destination view you want to make equal widths to and let go.

enter image description here

enter image description here

Upvotes: 1

Related Questions