コード例 #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);
            }
        }
コード例 #2
0
 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);
 }
コード例 #3
0
        void ActivarFuncionalidad(bool activado)
        {
            profileTapGesture = new UITapGestureRecognizer(ShowOptions)
            {
                Enabled = activado
            };
            profileView.AddGestureRecognizer(profileTapGesture);

            coverTapGesture = new UITapGestureRecognizer(ShowOptions)
            {
                Enabled = activado
            };
            CoverView.AddGestureRecognizer(coverTapGesture);
        }
コード例 #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);
        }
コード例 #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);
        }
コード例 #6
0
ファイル: MapCell.cs プロジェクト: showmap/smartwalk
        private void InitializeGestures()
        {
            _mapTapGesture = new UITapGestureRecognizer(() => {
                if (NavigateAddressesCommand != null &&
                    NavigateAddressesCommand.CanExecute(DataContext))
                {
                    NavigateAddressesCommand.Execute(DataContext);
                }
            })
            {
                NumberOfTouchesRequired = (uint)1,
                NumberOfTapsRequired    = (uint)1
            };

            CoverView.AddGestureRecognizer(_mapTapGesture);
        }