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

ItemSelected and ItemTapped events not firing in a Xamarin.Forms solution

$
0
0

public class SubMenuCell:ViewCell
{
public SubMenuCell()
{
this.Tapped += SubMenuCell_Tapped;
View = new StackLayout
{
Children =
{
new Label{Text="Description"},
new Button{Text="Button"}
}
};

        void SubMenuCell_Tapped(object sender, EventArgs e)
        {
        }

}

If the viewCell contains a Button control then ViewCell Tapped the event does not fire.
thank you


Viewing all articles
Browse latest Browse all 58056

Trending Articles



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