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

Tabbed Page Action Bar Rendering

$
0
0

The follow is a way to overwhelm the issues when setup the action bar of a tabbed page project.

But before showing the rendered let make a short intro for the guys who is using this for first time.

PART 1 - XAML

The XAML code of a tabbed page is the follow:

`<?xml version="1.0" encoding="utf-8" ?>

<TabbedPage.Children>

    <ContentPage x:Name="tabKeypad">
        <StackLayout 
           ......Some Code
        </StackLayout>

    </ContentPage>

    <ContentPage  x:Name="tabContacts">
        <Grid>
          ......Some Code
        </Grid>
    </ContentPage>

    <ContentPage x:Name="tabFavourites">
        <Grid>
          ......Some Code
        </Grid>
    </ContentPage>

    <ContentPage x:Name="tabCallHistory">
        <Label Text="Coming Soon" />
    </ContentPage>

</TabbedPage.Children>

`

A short description of the XAML tabbed page is the follow:

<TabbedPage>
        <TabbedPage.Children>
            <ContentPage x:Name="Tab1"/> <!-- Remmber always to use x:Name and not Name (As may use it in a WPF app) -->
            <ContentPage x:Name="Tab2"/>
            <ContentPage x:Name="Tab3"/>
        </TabbedPage.Children>
</TabbedPage>

Viewing all articles
Browse latest Browse all 75885

Trending Articles



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