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

Why does my master detail page have 2 navigation bars?

$
0
0

Hi, Im using xaml for my master detail page and other pages however when i run my app i seem to have 2 navigation bars present and one doesnt have any items. help please.

Master detail page code

`

<?xml version="1.0" encoding="UTF-8"?>

<MasterDetailPage.Master>

<ContentPage Title = "Home">
  <StackLayout>
    <Button Text="Freestyle Times" />
    <Button Text="Backstroke Times" />
    <Button Text="Brestroke Times" />
    <Button Text="Butterfly Times" />
    <Button Text="Medely Times" />
  </StackLayout>
</ContentPage>

</MasterDetailPage.Master>

<MasterDetailPage.Detail>



</NavigationPage>

</MasterDetailPage.Detail>

`
Code behind Master detail page

`using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using GoogleLogin.Views;
using Xamarin.Forms;
using TimeTrackerApps;

namespace TimeTrackerApps
{
public partial class Home : MasterDetailPage
{

    public Home()
    {


        InitializeComponent();

    }



}

}`

Code for Homepage

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

<ContentPage.Content>

    </StackLayout>
</ContentPage.Content>

`

Code behind Homepage

`using System;
using System.Collections.Generic;

using Xamarin.Forms;

namespace TimeTrackerApps
{
public partial class Homepage : ContentPage
{
public Homepage()
{
InitializeComponent();
}
}
}
`

Image of what happens


Viewing all articles
Browse latest Browse all 77050

Trending Articles



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