コード例 #1
0
        public SeeMore()
        {
            InitializeComponent();

            var tapGestureRecognizer = new TapGestureRecognizer();

            tapGestureRecognizer.Tapped += (s, e) => {
                ClickedItemCommand?.Execute(false);
            };

            MainContainer.GestureRecognizers.Add(tapGestureRecognizer);
        }
コード例 #2
0
        public MenuOption()
        {
            InitializeComponent();

            var tapGestureRecognizer = new TapGestureRecognizer();

            tapGestureRecognizer.Tapped += (s, e) => {
                ClickedItemCommand?.Execute(new Unit());
            };

            MainContainer.GestureRecognizers.Add(tapGestureRecognizer);
        }
コード例 #3
0
        public ChildProfileImage()
        {
            InitializeComponent();

            var ProfiletapGestureRecognizer = new TapGestureRecognizer();

            ProfiletapGestureRecognizer.Tapped += (s, e) => {
                ClickedItemCommand?.Execute(ProfileId);
            };

            MainContainer.GestureRecognizers.Add(ProfiletapGestureRecognizer);

            var BadgeTapGestureRecognizer = new TapGestureRecognizer();

            BadgeTapGestureRecognizer.Tapped += (s, e) => {
                BadgeCommand?.Execute(false);
            };
            BadgeLabel.GestureRecognizers.Add(BadgeTapGestureRecognizer);
        }