Quantcast
Viewing all articles
Browse latest Browse all 76418

how to Fill Image fullscreen in stackLayout ?

how to Fill Image fullscreen in stackLayout in Xamarin ?

I can't set Image in fit to stacklayout

.XAML File Code

<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             x:Class="Test.FirstLoadScreen" >

  <StackLayout Padding="0" BackgroundColor="Yellow">
    <Image Source="ic_splash.png" HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand" > </Image>
  </StackLayout>
</ContentPage>

Screenshot of Output Android and Window Phone....

Image may be NSFW.
Clik here to view.

Image may be NSFW.
Clik here to view.

I want to fit Image in Background.


Viewing all articles
Browse latest Browse all 76418

Trending Articles