Exemplo n.º 1
0
        void HandleEventHandler(object sender, EventArgs e)
        {
            if (lblCover.Hidden == true)
            {
                lblCover.Hidden   = false;
                lblProfile.Hidden = false;
                profileTapGesture = new UITapGestureRecognizer(ShowOptions)
                {
                    Enabled = true
                };
                profileView.AddGestureRecognizer(profileTapGesture);

                coverTapGesture = new UITapGestureRecognizer(ShowOptions)
                {
                    Enabled = true
                };
                CoverView.AddGestureRecognizer(coverTapGesture);
            }
            else
            {
                lblCover.Hidden   = true;
                lblProfile.Hidden = true;
                profileTapGesture = new UITapGestureRecognizer(ShowOptions)
                {
                    Enabled = false
                };
                profileView.AddGestureRecognizer(profileTapGesture);

                coverTapGesture = new UITapGestureRecognizer(ShowOptions)
                {
                    Enabled = false
                };
                CoverView.AddGestureRecognizer(coverTapGesture);
            }
        }
 void InitializeComponents()
 {
     lblEdit.Hidden    = LblCover.Hidden = true;
     profileTapGesture = new UITapGestureRecognizer(Opciones)
     {
         Enabled = true
     };
     ProfileView.AddGestureRecognizer(profileTapGesture);
     coverTapGesture = new UITapGestureRecognizer(Opciones)
     {
         Enabled = true
     };
     CoverView.AddGestureRecognizer(coverTapGesture);
 }
        void ActivarFuncionalidad(bool activado)
        {
            profileTapGesture = new UITapGestureRecognizer(ShowOptions)
            {
                Enabled = activado
            };
            profileView.AddGestureRecognizer(profileTapGesture);

            coverTapGesture = new UITapGestureRecognizer(ShowOptions)
            {
                Enabled = activado
            };
            CoverView.AddGestureRecognizer(coverTapGesture);
        }
Exemplo n.º 4
0
        void InitializeComponents()
        {
            lblProfile.Hidden = lblCover.Hidden = true;

            profileTapGesture = new UITapGestureRecognizer(ShowOptions)
            {
                Enabled = false
            };
            profileView.AddGestureRecognizer(profileTapGesture);

            coverTapGesture = new UITapGestureRecognizer(ShowOptions)
            {
                Enabled = false
            };
            CoverView.AddGestureRecognizer(coverTapGesture);
        }
Exemplo n.º 5
0
        // override Finis

        #region Internal Functionality
        void InitializeComponents()
        {
            //Hidding components for edit
            lblEdit.Hidden = LblCover.Hidden = true;

            profileTapGesture = new UITapGestureRecognizer(ShowOptions)
            {
                Enabled = true
            };
            ProfileView.AddGestureRecognizer(profileTapGesture);
            coverTapGesture = new UITapGestureRecognizer(ShowOptions)
            {
                Enabled = true
            };
            CoverView.AddGestureRecognizer(coverTapGesture);
        }
Exemplo n.º 6
0
        private void InitializeGestures()
        {
            _mapTapGesture = new UITapGestureRecognizer(() => {
                if (NavigateAddressesCommand != null &&
                    NavigateAddressesCommand.CanExecute(DataContext))
                {
                    NavigateAddressesCommand.Execute(DataContext);
                }
            })
            {
                NumberOfTouchesRequired = (uint)1,
                NumberOfTapsRequired    = (uint)1
            };

            CoverView.AddGestureRecognizer(_mapTapGesture);
        }