Forum Xamarin Cross Platform with Xamarin

Place a button over my map

TimothyAhlineTimothyAhline USMember
edited December 2016 in Cross Platform with Xamarin

I am very new to Xamarin and I have looked around but no luck finding a solution.
I have a map that I want to take up my whole screen. When a place an image at the top to act as a button the background around that button is greyed out. I want to make it so I don't have the white bar in the background. I have a mock up of how I want it to look and how it actually looks attached.
What I want my App to look like.

What it actually looks like.

Best Answer


  • ClintStLaurentClintStLaurent USUniversity ✭✭✭✭✭

    I'd have to GUESS that you're XAML is set to be full width and expand to available space.
    But without seeing your XAML there's no way for anyone to know.

  • Clint I guess I should have included that. Here it is.
    <?xml version="1.0" encoding="utf-8" ?>

      <StackLayout VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand">
         <Button Image="MenuLogo.png"  HorizontalOptions="Center" />
        <DatePicker Date="{x:Static sys:DateTime.Now}" >
            <sys:DateTime x:FactoryMethod="Parse">
                <x:String>Jan 1 2000</x:String>
            <sys:DateTime x:FactoryMethod="Parse">
                <x:String>Dec 31 2050</x:String>
    <ContentPage BackgroundImage="RegisterScreen.png">
    <StackLayout Orientation="Vertical" Padding="100,300,100,0"  >
        <Entry x:Name="username" Placeholder="username"/>
        <Entry x:Name="email" Placeholder="email"/>
        <Entry x:Name="password" Placeholder="password" IsPassword="true"/>
        <Entry x:Name="verifyPassword" Placeholder="Verify Password" IsPassword="true"/>
        <Button Text="Submit"  HorizontalOptions="Center"
  • @FernandoBastos Thank you so much for the help. I feel like that is something I should have learned looking through layout documentation!!!

  • DineshFernandoDineshFernando USMember ✭✭

    I am trying to add a stacklayout instead of a button. How can we set it bottom aligned? setting verticle options to End doesn't help.

Sign In or Register to comment.