public override void LayoutSubviews ()
{
if (!isLayoutSetted) {
this.MainControl.AutoPinEdge (ALEdge.Right, ALEdge.Right, this);
this.MainControl.AutoPinEdge (ALEdge.Top, ALEdge.Top, this);
this.MainControl.AutoMatchDimension (ALDimension.Width, ALDimension.Width, this);
this.MainControl.AutoSetDimension (ALDimension.Height, 40);
this.ErrorLabel.AutoPinEdge (ALEdge.Bottom, ALEdge.Bottom, this);
this.ErrorLabel.AutoPinEdge (ALEdge.Left, ALEdge.Left, this);
this.ErrorLabel.AutoPinEdge (ALEdge.Right, ALEdge.Right, this);
this.ErrorLabel.AutoSetDimension (ALDimension.Height, 20);
isLayoutSetted = true;
}
}