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

TabbedPage cannot set title and cannot get rid of empty bar above tabs?

$
0
0

Xamarin.Forms (Android) I've scoured all the forums and there seems to be a bug/issue with TabbedPages and the Title Bar? I've got a simple MainPage.xaml below (based on standard Xamarin Forms TabbedPage example xamarin-forms-samples/TabbedPage). I can't seem to make "MyTitle" appear in the bar above the Tabs and, as a desperate alternative, I can't seem to kill the bar. It is always there at the top of the page wasting about 1cm of space, and always empty. Any tips?

Thanks!

<?xml version="1.0" encoding="utf-8" ?>
<TabbedPage xmlns="...://xamarin.com/schemas/2014/forms"
            xmlns:x="...://schemas.microsoft.com/winfx/2009/xaml"
            xmlns:views="clr-namespace:ClBle1.Views"
            x:Class="ClBle1.Views.MainPage" 
                BarTextColor="Red" Title="MyTitle!!!!!">
    <TabbedPage.Children>
        <NavigationPage HasNavigationBar="False" Title="History">
            <x:Arguments>
                <views:HistoryPage/>
            </x:Arguments>
        </NavigationPage>

        <NavigationPage HasNavigationBar="False"  Title="Settings">
            <x:Arguments>
                <views:SettingsPage />
            </x:Arguments>
        </NavigationPage>

        <NavigationPage HasNavigationBar="False"  Title="About">
            <x:Arguments>
                <views:AboutPage />
            </x:Arguments>
        </NavigationPage>
    </TabbedPage.Children>
</TabbedPage>

Viewing all articles
Browse latest Browse all 77050

Trending Articles



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