Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

Create a bottom Navigation bar for xamarin.forms

$
0
0

how to create a bottom navigation control. using layout concept.
i need like following image

i have tried this code.


<Grid.ColumnDefinitions>





</Grid.ColumnDefinitions>

        <StackLayout BackgroundColor="Lime" x:Name="stckPersonal" Orientation="Vertical" Grid.Column="0" HorizontalOptions="Fill" VerticalOptions="End">
            <Image  Source="home.png"  WidthRequest="30" HeightRequest="30" />
            <Label  Text="Personal" TextColor="Black"  />
        </StackLayout>

        <StackLayout x:Name="stckMedical"  Orientation="Vertical" Grid.Column="1"  HorizontalOptions="Fill" VerticalOptions="End">
            <Image Source="cardholder.png" WidthRequest="30" HeightRequest="30"  />
            <Label HorizontalTextAlignment="Center" Text="Medical" TextColor="Black"  />
        </StackLayout>

        <StackLayout x:Name="stckLegal" Orientation="Vertical"  Grid.Column="2"  HorizontalOptions="Fill" VerticalOptions="End">
            <Image  Source="cardholderdetail.png"  WidthRequest="30" HeightRequest="30" />
            <Label HorizontalTextAlignment="Center" Text="Legal" TextColor="Black" />
        </StackLayout>

         <StackLayout BackgroundColor="Lime" x:Name="stckICE" Orientation="Vertical"  Grid.Column="3"  HorizontalOptions="Fill" VerticalOptions="End">
            <Image Source="refresh.png" WidthRequest="30" HeightRequest="30"  />
            <Label HorizontalTextAlignment="Center" Text="ICE" TextColor="Black"  />
        </StackLayout>

        <StackLayout x:Name="stckRecords" Orientation="Vertical" Grid.Column="4"  HorizontalOptions="Fill" VerticalOptions="End">
            <Image  Source="logout.png"  WidthRequest="30" HeightRequest="30" />
            <Label HorizontalTextAlignment="Center" Text="Records" TextColor="Black" />
        </StackLayout>

Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>