How to Add Click event in Stack Layout or Frame

前端 未结 2 871
天涯浪人
天涯浪人 2021-02-03 20:03

I am new in xamarin.forms please help me out how i can add click event in Stack Layout or Frame



        
2条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-03 20:48

    Well, thanks @pnavk , according to what i saw, allow me also to share this, the Views (Layouts,Frame,Images etc) which do not have the inbuilt OnClick or Click Events have the same way of tackling the click Event.

    As follows :

    For an Image:

    
       
           
       
    
    

    For a Frame :

    
       
           
       
    
    

    For StackLayout :

    
       
           
       
    
    

    Cheers.

提交回复
热议问题