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

How to disable swipe gesture on pushed page.

$
0
0

I have a detail page, which is pushed onto the navigation stack:

    listView.ItemTapped += (sender, args) =>
        {
            if (listView.SelectedItem == null)
                return;
            var content = listView.SelectedItem as Content;

            var page = new ArticleView(content)
            {
                Title = string.Format("{0}", content.Title)
            };

            Navigation.PushAsync(page);
            listView.SelectedItem = null;
        };

The page that is pushed, is basically an ContentPage. How can I disable the swipe from the popped the view of the stack? My ScrollView on this page isn't reacting because the gesture is captured by the navigation page (I guess).


Viewing all articles
Browse latest Browse all 89864

Trending Articles



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