gFinger 손끝으로 만드는 세상

Table Of Contens

1. Code

2. Reference

 

 

1. Code


 

        {
            InitializeComponent();

            # region Tap Event Handler

            TapGestureRecognizer objTapGestureRecognizer = new TapGestureRecognizer();
            objTapGestureRecognizer.Tapped += ((o2, e2) =>
            {
                OnDismissButtonClicked();
            });

            this.Content.GestureRecognizers.Add(objTapGestureRecognizer);

            #endregion
        }
        
        async void OnDismissButtonClicked( )
        {
            ....
        }

 

 

2. Reference


 

https://stackoverflow.com/questions/26566375/how-to-add-a-click-handler-to-content-page-in-xamarin-forms

 

How to add a click handler to content page in xamarin forms

I am new at Xamarin.Forms and are trying to add a click event to my content page. I want an event to start when the user clicks on the page, no matter where. I've created similar functionality in a

stackoverflow.com