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

Navigation Issues When Using a Tabbed Page

$
0
0

Hi,

I am having a couple of issues when using the TabbedPage in Xamarin.Forms app I am hoping you all can help me with.

  1. The ListView control I am using to display my list of Members is not respecting the Nav Bar up top, and is rendering underneath it. I know w/native iOS handling the ScrollView.ContentInset seems to take care of this, and perhaps subclassing this page and using a custom renderer is an option. However, I was hoping to avoid that. Any suggestions on how to avoid this? (see attached Image1)

  2. I am using the ItemSelected event to trigger navigation to the corresponding page. However, I cannot seem to navigate to that page w/out doing a Navigation.PushModalAsync. If I try to simply navigate using Navigation.PushAsync, nothing happens. No error is thrown, but no navigation takes place. (see code below)

--
Note: code used to trigger the navigation issue mentioned above ...

public async void OnMemberSelected (object sender, SelectedItemChangedEventArgs e) {

        var _groupMemberVM = (GroupMemberViewModel)e.SelectedItem;

        var _groupMemberInfoPage = new GroupMemberInfoXaml ();
        _groupMemberInfoPage.SetGroupMemberViewModel (_groupMemberVM);

        await Navigation.PushAsync(_groupMemberInfoPage);

}

Thanks in advance!


Viewing all articles
Browse latest Browse all 77050

Trending Articles



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