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

Pushing new modal page through control in custom view cell

$
0
0

I have a Library page that displays a list of custom view cells. Each view cell has an image that, when tapped, should bring up a pop up (in my case, using a new modal page) that allows them to edit the view cell. I have linked each view cell with a tap gesture recognizer, but I'm not sure how to bring up the modal page from within a view cell, since the line I'd typically use is Navigation.PushModalAsync(modalPage), which only works for content pages.

These are the lines in my view cell class:

        var image = new Image
        {
            Source = "icon_expand.png",
            WidthRequest = 60,
            HeightRequest = 60
        };

        var imageTapRecognizer = new TapGestureRecognizer();
        imageTapRecognizer.Tapped += (s, e) =>
        {
            //What goes here? In the page containing the view cell, I'd like to bring up a pop up 
        };
        image.GestureRecognizers.Add(imageTapRecognizer);

Thanks!


Viewing all articles
Browse latest Browse all 58056

Trending Articles



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