docs-maui icon indicating copy to clipboard operation
docs-maui copied to clipboard

Navigating Tabbed Page creating Issue

Open qmfaiz55510 opened this issue 1 year ago • 0 comments

Type of issue

Code doesn't work

Description

I have created TabbedPage in MAUI ,

"<TabbedPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="FaizMobileApp6.CustomTabPage" Title="CustomTabPage">

<ContentPage Title="Tab 1">
    <StackLayout>
        <Label Text="This is Tab 1" />
    </StackLayout>
</ContentPage>
<ContentPage Title="Tab 2">
    <StackLayout>
        <Label Text="This is Tab 2" />
    </StackLayout>
</ContentPage>

</TabbedPage>"

In AppShell.Xaml.Cs registered Rout

Routing.RegisterRoute("CustomTabPage", typeof(CustomTabPage));

On MainPage.Xaml.cs I am calling TabbedPage as private async void OnProceedClicked(object sender, EventArgs e) {

await Shell.Current.GoToAsync(nameof(CustomTabPage));          

}

I am getting error as "View Not found"

Will someone help in this regards

If calling with Navigation.PushModalAsync(new NavigationPage( ...).. The Back Button is not visible in TabbedPage [Enter feedback here]

Page URL

https://learn.microsoft.com/en-us/dotnet/maui/user-interface/pages/tabbedpage?view=net-maui-8.0

Content source URL

https://github.com/dotnet/docs-maui/blob/main/docs/user-interface/pages/tabbedpage.md

Document Version Independent Id

d9f1977c-bc41-c096-0b17-6db418d440b0

Article author

@davidbritch

Metadata

  • ID: d9f1977c-bc41-c096-0b17-6db418d440b0
  • Service: dotnet-mobile
  • Sub-service: dotnet-maui

qmfaiz55510 avatar Jul 28 '24 10:07 qmfaiz55510