This is the code of the image and layout from a tabbed page:
RelativeLayout PrincipalLayout = new RelativeLayout ();
Image background = new Image {
Source = Images.Background,
};
PrincipalLayout.Children.Add (background,
xConstraint: Constraint.RelativeToParent ((parent) => {
return 0;
}),
yConstraint: Constraint.RelativeToParent ((parent) => {
return 0;
}),
widthConstraint: Constraint.RelativeToParent ((parent) => {
return parent.Width;
}),
heightConstraint: Constraint.RelativeToParent ((parent) => {
return parent.Height;
})
);
this.Content = PrincipalLayout;
But the image don't start at X = 0 and don't finish at the right place.
Take a look at the image:
**I need the image get all frame.
**