Exemplo n.º 1
0
        public void SetAction(EmptyParametrDelegate action)
        {
            if (uitype == UIType.BUTTON)
            {
                TapGestureRecognizer tgr = new TapGestureRecognizer {
                    NumberOfTapsRequired = 1
                };
                tgr.TappedCallback = (sender, args) =>
                {
                    action();
                };

                mainGrid.GestureRecognizers.Add(tgr);
            }
        }
Exemplo n.º 2
0
 public void SetAction(EmptyParametrDelegate action)
 {
     this.action = action;
 }
Exemplo n.º 3
0
        public async void FeidOutOpacity(View view, EmptyParametrDelegate action)
        {
            await view.FadeTo(0, 500);

            action();
        }