How can i set the background no-repeat but stretch dinamically to all page?
this works:
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="App3.Page">
<RelativeLayout Padding="0">
<!-- Background -->
<Image
Aspect="AspectFill"
Source="icon.png"
RelativeLayout.WidthConstraint= "{ConstraintExpression Type=RelativeToParent, Property=Width}"
RelativeLayout.HeightConstraint= "{ConstraintExpression Type=RelativeToParent, Property=Height}">
</Image>
<StackLayout>
<Label Text="Test"></Label>
</StackLayout>
</RelativeLayout>
</ContentPage>
Answers
Create page with RelativeLayout and add there are Image with Aspect="AspectFill" and RelativeLayout.WidthConstraint= "{ConstraintExpression Type=RelativeToParent, Property=Width}" and RelativeLayout.HeightConstraint= "{ConstraintExpression Type=RelativeToParent, Property=Height}
Something like this:
@SirAndriy
I have use Aspect="Fill" but the solutions is corrected! Thank's
this works:
Thank you SirAndriy ... you certainly saved my sorry backside with this solution ... cheers