Forum Cross Platform with Xamarin

Navigating within a tabbed page issue

Hi,
not sure if this is a bug or I am missing something. I have tapped page as Main Page. Children are mixed between Content pages and list view pages of type navigation pages.


public TP_MainView()
{
InitializeComponent();

            var nav = new NavigationPage(new PG_HighLight())
            {
                Title = "HighLights"

            };

///some other pages
this.Children.Insert(0, nav);
this.Children.Insert(1, nav1);
this.Children.Insert(2, nav2);
this.Children.Insert(3, nav3);

one of those nave pages have a button to PushAsync navigate to another page (not tab view children), which give me the resuts as expected ==> Navigation inside the current page (Tab children)


await Views.PG_IntroPage.tp.CurrentPage.Navigation.PushAsync( new PG_Reader(s) { Title = s.Name });

another view where it have a list view with ICommand Item Tabbed, to do the same code statement "Navigate to another page within tab page" ==> it performs a fully modal Navigation Page.

        <ListView x:Name="ItemsListView"
            ItemsSource="{Binding HiLightsItems}"
            VerticalOptions="FillAndExpand"
            HasUnevenRows="true"
            RefreshCommand="{Binding LoadItemsCommand}"                      
            IsPullToRefreshEnabled="true"
            IsRefreshing="{Binding IsBusy}"     
                  ItemTapped="BookTapped"
            CachingStrategy="RecycleElement">
            <ListView.ItemTemplate>               

</code

any reasons why?

Answers

Sign In or Register to comment.